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