summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2009-02-13 21:38:58 -0600
committerMike Westerhof <mwester@dls.net>2009-02-13 21:44:43 -0600
commite21defd80627348a7e7708c497b5f2dcfb627f6d (patch)
tree813288ad19039d4f845f942147780ae362cb8228
parent0137e98b2288020dde280f3c2f456a980d973148 (diff)
SlugOS: slugos-init - add /sbin/setup-optware.sh
-rw-r--r--packages/slugos-init/files/setup-optware.sh17
-rw-r--r--packages/slugos-init/slugos-init_5.0.bb5
2 files changed, 20 insertions, 2 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
diff --git a/packages/slugos-init/slugos-init_5.0.bb b/packages/slugos-init/slugos-init_5.0.bb
index 7d4769d6e9..beeaa34135 100644
--- a/packages/slugos-init/slugos-init_5.0.bb
+++ b/packages/slugos-init/slugos-init_5.0.bb
@@ -4,7 +4,7 @@ PRIORITY = "required"
LICENSE = "GPL"
DEPENDS = "base-files devio"
RDEPENDS = "busybox devio"
-PR = "r9"
+PR = "r10"
SRC_URI = "file://boot/flash \
file://boot/disk \
@@ -27,6 +27,7 @@ SRC_URI = "file://boot/flash \
file://conffiles \
file://sysconf \
file://leds \
+ file://setup-optware.sh \
file://turnup \
file://reflash \
file://usb \
@@ -35,7 +36,7 @@ SRC_URI = "file://boot/flash \
SBINPROGS = ""
USRSBINPROGS = ""
CPROGS = "${USRSBINPROGS} ${SBINPROGS}"
-SCRIPTS = "turnup leds sysconf"
+SCRIPTS = "turnup leds sysconf setup-optware.sh"
BOOTSCRIPTS = "flash disk nfs ram network udhcpc.script"
INITSCRIPTS = "syslog.buffer syslog.file syslog.network zleds\
leds_startup rmrecovery sysconfsetup umountinitrd.sh\