summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh
diff options
context:
space:
mode:
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