]> git.openpandora.org Git - openembedded.git/commitdiff
slugos-init: update to use 'beep' in 0.10
authorJohn Bowler <jbowler@nslu2-linux.org>
Mon, 30 Jan 2006 00:16:23 +0000 (00:16 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 30 Jan 2006 00:16:23 +0000 (00:16 +0000)
 - boot scripts now use the new beep arguments

packages/slugos-init/files/boot/disk
packages/slugos-init/files/boot/flash
packages/slugos-init/files/boot/nfs
packages/slugos-init/files/boot/ram
packages/slugos-init/files/leds
packages/slugos-init/files/reflash
packages/slugos-init/files/turnup
packages/slugos-init/slugos-init_0.10.bb

index e8d1f5245bf06d5b37d50d5ac75f98b876870063..f603d0f71143afa31a03488f5c9ffc255dd83655 100644 (file)
@@ -46,4 +46,5 @@ then
        fi
 fi
 # fallback - use the flash boot
+leds beep -f 1000 -r 2
 exec /boot/flash
index 12729d7b5d1f66e2fd810c056e4840d60d43f78a..37a1055763d8fc98dcf5d50efcd1993ee6ad8a4a 100644 (file)
@@ -2,8 +2,8 @@
 # boot from the current (flash) root partition
 # nothing need be done apart from setting the
 # system LED status correctly
-. /etc/default/functions
 leds beep
+. /etc/default/functions
 leds boot system
 test -x /sbin/init && exec /sbin/init
 # fallback if /sbin/init has been deleted (bad!)
index 5f1cbbe3234a2c6f2c332d46043b6c7741d9f99a..856f4e56b9096448727467bea2ae3c05ef73c877 100644 (file)
@@ -3,11 +3,12 @@
 # must be given) using options from the rest of
 # the command line.
 #
+# Use the standard init path (see /etc/init.d/rcS)
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin
+#
 . /etc/default/functions
 leds boot system
 #
-# Use the standard init path (see /etc/init.d/rcS)
-export PATH=/sbin:/bin:/usr/sbin:/usr/bin
 if /boot/network
 then
        # network is up and running, the NFS mount will
@@ -15,4 +16,5 @@ then
        exec /boot/disk "$@"
 fi
 # fallback - use the flash boot
+leds beep -f 1000 -r 2
 exec /boot/flash
index 42ff8329f926796cf47f674d966aa664d1e7909f..a7c78b39ac25b42866bf6e7e81d420254918f02c 100644 (file)
@@ -9,7 +9,7 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin
 # Load the helper functions
 . /etc/default/functions
 #
-leds beep double
+leds beep -r 2
 leds boot system
 #
 if test -n "$1"
@@ -45,4 +45,5 @@ then
        fi
 fi
 # fallback - use the flash boot
+leds beep -f 1000 -r 2
 exec /boot/flash
index 8132a22046c17601666d052028edfbd5eaed80bc..b614dd60d83930c5bac8a37bed59f223fc1131eb 100644 (file)
@@ -166,10 +166,18 @@ sysled(){
 }
 
 #
-# beep [double]
-#  emit a beep, or a double beep
-#  dummy - at present does  nothing
+# beep {arguments}
+#  emit a beep
+#  does nothing if there is no beep executable
 beep(){
+       local arg
+       arg=
+       test "$1" = beep && shift
+       if test -x /bin/beep
+       then
+               test -c /dev/buzzer && arg="-e /dev/buzzer"
+               /bin/beep $arg "$@"
+       fi
        return 0
 }
 
@@ -192,7 +200,7 @@ leds_help(){
        echo "    trigger may be given.  'user' will use the default specified" >&2
        echo "    in USER_LED from /etc/default/rcS, if not specified a cpu" >&2
        echo "    activity setting appropriate to the machine is selected" >&2
-       echo "  beep [double]" >&2
+       echo "  beep {args}" >&2
        echo "    if possible cause the machine to emit a beep" >&2
 }
 
index ad1c4c26add4bca085da73398e73fc9f7c57582b..9108e36821ff51ad9789bc03fe12c11b688f4aba 100644 (file)
@@ -208,7 +208,7 @@ then
        #
        # check the input file size
        test -n "$imgksize" -a "$imgksize" -gt 0 -a "$imgksize" -le "$ksize" || {
-               echo "reflash: $kfile: bad Kernel size ($s, max $ksize)" >&2
+               echo "reflash: $kfile: bad Kernel size ($imgksize, max $ksize)" >&2
                exit 1
        }
 fi
@@ -228,7 +228,7 @@ then
        #
        # check the input file size
        test -n "$imgffssize" -a "$imgffssize" -gt 0 -a "$imgffssize" -le "$ffssize" || {
-               echo "reflash: $ffsfile: bad Flashdisk size ($s, max $ffssize)" >&2
+               echo "reflash: $ffsfile: bad Flashdisk size ($imgffsize, max $ffssize)" >&2
                exit 1
        }
 fi
index 0d50e4d39a2b1649e27d03a8aad06aace9c9d45f..19c5af17456211fc751ff2d41c431573574216db 100644 (file)
@@ -370,6 +370,7 @@ boot_rootfs() {
                        return 1
                };;
        ram)    {       echo '#!/bin/sh'
+                       echo 'leds beep'
                        echo 'rm -f /linuxrc.new'
                        echo 'ln -s boot/flash /linuxrc.new'
                        echo 'mv /linuxrc.new /linuxrc'
@@ -381,6 +382,7 @@ boot_rootfs() {
                        return 1
                };;
        *)      {       echo '#!/bin/sh'
+                       echo 'leds beep'
                        test "$sleep" -gt 0 && echo -n "sleep='$sleep' "
                        echo -n "exec '/boot/$type' '$device'"
                        for opt in "$@"
index 8ec69e88f1a7187c82833f3f8b88fa2e6ef8b939..06d8b7db229f67a3ff32f555a2bfb4b9a7867a35 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 LICENSE = "GPL"
 DEPENDS = "base-files devio"
 RDEPENDS = "busybox devio"
-PR = "r49"
+PR = "r50"
 
 SRC_URI = "file://boot/flash \
           file://boot/disk \