summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd/gpsdupdater/lib/opkginstall.sh
blob: 57f7604a92075a121086824a03d7a8e5f1b490be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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