diff options
author | Mike Westerhof <mwester@dls.net> | 2009-02-13 21:38:58 -0600 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2009-02-13 21:44:43 -0600 |
commit | e21defd80627348a7e7708c497b5f2dcfb627f6d (patch) | |
tree | 813288ad19039d4f845f942147780ae362cb8228 /packages/slugos-init/files | |
parent | 0137e98b2288020dde280f3c2f456a980d973148 (diff) |
SlugOS: slugos-init - add /sbin/setup-optware.sh
Diffstat (limited to 'packages/slugos-init/files')
-rw-r--r-- | packages/slugos-init/files/setup-optware.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/slugos-init/files/setup-optware.sh b/packages/slugos-init/files/setup-optware.sh new file mode 100644 index 0000000000..e9b543c812 --- /dev/null +++ b/packages/slugos-init/files/setup-optware.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if test 0 != `id -u`; then + echo 'Please run as root' + exit 1 +fi + +optware_target=slugos5be +feed=http://ipkg.nslu2-linux.org/feeds/optware/${optware_target}/cross/unstable +latest_xsh=`wget -q -O- ${feed} | grep '\.xsh' | sed -e 's/.*xsh">//' -e 's/<.*//'` + +if test -n "${latest_xsh}"; then + cd /tmp + rm -f ${latest_xsh} + wget ${feed}/${latest_xsh} + sh ${latest_xsh} +fi |