summaryrefslogtreecommitdiff
path: root/packages/nslu2-binary-only/unslung-rootfs/rc.optware-start
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-01-04 12:08:04 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-04 12:08:04 +0000
commit5eccfb8fa47f3bb6a55252bbe4cc7e108f9c410d (patch)
tree52ce096c38620e7e8d351746f544af9a75d240f0 /packages/nslu2-binary-only/unslung-rootfs/rc.optware-start
parentde6622c1519b1a6c6de00009546e3a7122a228d8 (diff)
unslung: Usability updates for Unslung 6.x - ipkg prints message when booted on flash, motd prints at login indicating status of on-disk or on-flash, status appears on home page in web interface, unsling now asks for root password, and some additional checks are made by unsling to avoid known problems that can prevent a successful unsling, added new unslung logo.
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs/rc.optware-start')
-rwxr-xr-xpackages/nslu2-binary-only/unslung-rootfs/rc.optware-start27
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs/rc.optware-start b/packages/nslu2-binary-only/unslung-rootfs/rc.optware-start
new file mode 100755
index 0000000000..53fe7e8262
--- /dev/null
+++ b/packages/nslu2-binary-only/unslung-rootfs/rc.optware-start
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+if ( [ -f /unslung/rc.optware-start ] && . /unslung/rc.optware-start ) ; then return 0 ; fi
+
+# Start all init scripts in /opt/etc/init.d
+# executing them in numerical order.
+#
+for i in /opt/etc/init.d/S??* ;do
+
+ # Ignore dangling symlinks (if any).
+ [ ! -f "$i" ] && continue
+
+ case "$i" in
+ *.sh)
+ # Source shell script for speed.
+ (
+ trap - INT QUIT TSTP
+ set start
+ . $i
+ )
+ ;;
+ *)
+ # No sh extension, so fork subprocess.
+ $i start
+ ;;
+ esac
+done