diff options
author | John Klug <john.klug@multitech.com> | 2016-12-20 18:13:03 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2016-12-20 18:13:03 -0600 |
commit | 179371d9381f86c0d68e0c981ef3fc5dce830aaa (patch) | |
tree | 5d54534e5854eae13a8c461dd29b877980aec816 /recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh | |
parent | 0f102a28f8323576eadfc20f95050f826197f665 (diff) | |
parent | b2440edd24018fab7cff1e75ba66f1491d7dad60 (diff) | |
download | meta-mlinux-179371d9381f86c0d68e0c981ef3fc5dce830aaa.tar.gz meta-mlinux-179371d9381f86c0d68e0c981ef3fc5dce830aaa.tar.bz2 meta-mlinux-179371d9381f86c0d68e0c981ef3fc5dce830aaa.zip |
Merge gpsd changes to mlinux gitlab master
Diffstat (limited to 'recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh')
-rwxr-xr-x | recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh | 15 |
1 files changed, 15 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..d1c17ba --- /dev/null +++ b/recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh @@ -0,0 +1,15 @@ +#!/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 +set +x |