update.sh 403 B

1234567891011121314151617181920
  1. #! /bin/sh
  2. ## script to pull latest card-manager-ipk from online and install it
  3. url="$1"
  4. if [ "$url" == "" ]; then
  5. echo "Error: need URL"
  6. exit
  7. fi
  8. cd /tmp
  9. rm -rf *.ipk
  10. wget --no-check-certificate $url
  11. opkg remove --force-depends oboo-clock-card-manager
  12. # TODO: need to update version numbers
  13. opkg install oboo-clock-card-manager-0.2.6-1-mipsel-24kc.ipk
  14. /etc/init.d/card-manager stop