Add welcome beep (disable with nobeep)
authorChristian Hofstaedtler <ch@grml.org>
Fri, 25 Nov 2011 14:10:08 +0000 (15:10 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Fri, 25 Nov 2011 14:10:08 +0000 (15:10 +0100)
usr_share/run-welcome

index 8dd379a..ae7a00d 100755 (executable)
@@ -27,6 +27,15 @@ if [ -r /etc/default/locale ] ; then
    fi
 fi
 
+# welcome beep
+case "$CMDLINE" in
+  *\ nobeep*)
+    ;;
+  *)
+    (for f in 2000 1500 1000 2000; do beep -f $f -l 150; done) &
+    ;;
+esac
+
 case "$CMDLINE" in
    # allow customized startup via bootoption startup:
    *startup=*)