NSLU2-Linux
view · edit · print · history

A Festive song for the Holiday season!

 In order for 'beep' to work, the script below needs to be run as root.
 If this scares you then change the permission on device that 'beep' uses.
 'chmod 777 /dev/input/event0'
 Then you may run as any user.
 #!/bin/sh

 BEEP="/bin/beep"

 A3="-f220"
 B3="-f246"
 C4="-f261"
 D4="-f293"
 E4="-f329"
 F4="-f349"
 G4="-f392"
 A4="-f440"
 B4="-f493"
 C5="-f523"

 FN="-l500"
 HN="-l250"
 DN="-l1000"
 NN="-n"

 SONG="\
 $C4 $FN $NN \
 $F4 $FN $NN \
 $F4 $HN $NN \
 $G4 $HN $NN \
 $F4 $HN $NN \
 $E4 $HN $NN \
 $D4 $FN $NN \
 $D4 $FN $NN \
 $D4 $FN $NN \
 $G4 $FN $NN \
 $G4 $HN $NN \
 $A4 $HN $NN \
 $G4 $HN $NN \
 $F4 $HN $NN \
 $E4 $FN $NN \
 $E4 $FN $NN \
 $E4 $FN $NN \
 $A4 $FN $NN \
 $A4 $HN $NN \
 $B4 $HN $NN \
 $A4 $HN $NN \
 $G4 $HN $NN \
 $F4 $FN $NN \
 $D4 $FN $NN \
 $C4 $HN $NN \
 $C4 $HN $NN \
 $D4 $FN $NN \
 $G4 $FN $NN \
 $E4 $FN $NN \
 $F4 $DN $NN \
 $C4 $FN $NN \
 $F4 $FN $NN \
 $F4 $FN $NN \
 $F4 $FN $NN \
 $E4 $DN $NN \
 $E4 $FN $NN \
 $F4 $FN $NN \
 $E4 $FN $NN \
 $D4 $FN $NN \
 $C4 $DN $NN \
 $G4 $DN $NN \
 $A4 $FN $NN \
 $G4 $HN $NN \
 $G4 $HN $NN \
 $F4 $HN $NN \
 $F4 $HN $NN \
 $C5 $FN $NN \
 $C4 $FN $NN \
 $C4 $HN $NN \
 $C4 $HN $NN \
 $D4 $FN $NN \
 $G4 $FN $NN \
 $E4 $FN $NN \
 $F4 $DN"

 $BEEP $SONG
 To use this on a Debian/NSLU2 system, change the BEEP= line to
 BEEP="/usr/bin/beep -e /dev/input/event0"
view · edit · print · history · Last edited by dumfrac.
Based on work by dumfrac and mrkzander.
Originally by mrkzander.
Page last modified on December 23, 2006, at 08:55 PM