diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2005-05-24 15:56:24 +0000 |
---|---|---|
committer | John Bowler <jbowler@nslu2-linux.org> | 2005-05-24 15:56:24 +0000 |
commit | 4f0066e53b91b14c1bcc863db7d692a358184ee0 (patch) | |
tree | 3246a372d1121f5cafb862eae203893bd0f21115 /packages/openslug-init | |
parent | 8890ffce596de992f17cedbc83c00b21c3c09efc (diff) |
Fix for LED transition on first boot. The transition from
'S' to '5' (or whatever the first run level is) is not
signalled on the ready/status LED. This fixes the problem.
BKrev: 42934ea8UBEpAnzT0Beqnj-jJl0Leg
Diffstat (limited to 'packages/openslug-init')
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/leds_rs_green | 2 | ||||
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/leds_startup | 0 | ||||
-rw-r--r-- | packages/openslug-init/openslug-init_0.10.bb | 9 |
3 files changed, 8 insertions, 3 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/leds_rs_green b/packages/openslug-init/openslug-init-0.10/leds_rs_green index 5483d67202..c3ad3d2d64 100644 --- a/packages/openslug-init/openslug-init-0.10/leds_rs_green +++ b/packages/openslug-init/openslug-init-0.10/leds_rs_green @@ -22,7 +22,7 @@ colour() { case "$1" in S|0|1|6) echo gr;; 2|3|4|5) echo g;; - N) echo gr;; # apparently used for S as well + N) echo r;; *) echo "led change: $runlevel: runlevel unknown" >&2 echo r;; esac diff --git a/packages/openslug-init/openslug-init-0.10/leds_startup b/packages/openslug-init/openslug-init-0.10/leds_startup new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/openslug-init/openslug-init-0.10/leds_startup diff --git a/packages/openslug-init/openslug-init_0.10.bb b/packages/openslug-init/openslug-init_0.10.bb index ceb04b0066..00cac5c0d8 100644 --- a/packages/openslug-init/openslug-init_0.10.bb +++ b/packages/openslug-init/openslug-init_0.10.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Openslug initial network config via sysconf" SECTION = "console/network" LICENSE = "GPL" DEPENDS = "base-files" -PR = "r24" +PR = "r25" SRC_URI = "file://linuxrc \ file://boot/flash \ @@ -18,6 +18,7 @@ SRC_URI = "file://linuxrc \ file://modutils.txt \ file://modprobe.conf \ file://leds_rs_green \ + file://leds_startup \ file://leds.h \ file://leds.c \ file://kern_header.c \ @@ -30,7 +31,7 @@ CPROGS = "${USRSBINPROGS} ${SBINPROGS}" SCRIPTS = "turnup update-kernel" BOOTSCRIPTS = "flash disk nfs ram network udhcpc.script" -# This jsut makes things easier... +# This just makes things easier... S="${WORKDIR}" do_compile() { @@ -80,6 +81,7 @@ do_install() { install -m 0644 functions ${D}${sysconfdir}/default install -m 0755 rmrecovery ${D}${sysconfdir}/init.d/ install -m 0755 sysconfsetup ${D}${sysconfdir}/init.d/ + install -m 0755 leds_startup ${D}${sysconfdir}/init.d/ install -m 0755 leds_rs_green ${D}${sysconfdir}/init.d/zleds_rs # @@ -105,6 +107,8 @@ pkg_postinst_openslug-init() { test -n "$D" && opt="-r $D" update-rc.d $opt sysconfsetup start 11 S . update-rc.d $opt zleds_rs start 99 S 1 2 3 4 5 . stop 05 0 1 2 3 4 5 6 . + # bug fix for startup + update-rc.d $opt leds_startup start 01 1 2 3 4 5 . } pkg_postrm_openslug-init() { @@ -112,6 +116,7 @@ pkg_postrm_openslug-init() { test -n "$D" && opt="-r $D" update-rc.d $opt sysconfsetup remove update-rc.d $opt zleds_rs remove + update-rc.d $opt leds_startup remove } PACKAGES = "${PN}" |