fi
fi
# fallback - use the flash boot
+leds beep -f 1000 -r 2
exec /boot/flash
# 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!)
# 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
exec /boot/disk "$@"
fi
# fallback - use the flash boot
+leds beep -f 1000 -r 2
exec /boot/flash
# Load the helper functions
. /etc/default/functions
#
-leds beep double
+leds beep -r 2
leds boot system
#
if test -n "$1"
fi
fi
# fallback - use the flash boot
+leds beep -f 1000 -r 2
exec /boot/flash
}
#
-# 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
}
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
}
#
# 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
#
# 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
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'
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 "$@"
LICENSE = "GPL"
DEPENDS = "base-files devio"
RDEPENDS = "busybox devio"
-PR = "r49"
+PR = "r50"
SRC_URI = "file://boot/flash \
file://boot/disk \