summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-12-15 12:22:18 -0600
committerJohn Klug <john.klug@multitech.com>2016-12-15 12:22:18 -0600
commit978eec32d3736f7054a92c01c850fcd9ad6bdf3e (patch)
tree81acdeb35b65c6077c942416b23659fd2d456525 /recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh
parent61c3ea12a2db4803e013343f1681f88d04ba6b47 (diff)
downloadmeta-mlinux-978eec32d3736f7054a92c01c850fcd9ad6bdf3e.tar.gz
meta-mlinux-978eec32d3736f7054a92c01c850fcd9ad6bdf3e.tar.bz2
meta-mlinux-978eec32d3736f7054a92c01c850fcd9ad6bdf3e.zip
Files to create a gps package update using a bash archive
Diffstat (limited to 'recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh')
-rwxr-xr-xrecipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh b/recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh
new file mode 100755
index 0000000..57f7604
--- /dev/null
+++ b/recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+list=""
+for f in *.ipk ; do
+ if [[ $f =~ ^busybox ]] ; then
+ continue
+ fi
+ [[ $f =~ ([^_]*) ]] && true
+ list+="${BASH_REMATCH[1]} "
+done
+list=$(echo $list | xargs)
+echo $list
+set -x
+opkg --force-depends --force-remove --force-removal-of-dependent-packages remove $list
+opkg install *.ipk
+opkg upgrade busybox*.ipk
+set +x