Annotation of elwix/config/etc/default/pceng/button.sh, revision 1.2

1.2     ! misho       1: #!/bin/sh
        !             2: #
        !             3: # Button event script
        !             4: #
        !             5: # $Id: button.sh,v 1.1.2.2 2011/10/24 23:30:17 misho Exp $
        !             6: 
        !             7: PRESSED=${1:-0}
        !             8: 
        !             9: logger "Button pressed for $PRESSED seconds"
        !            10: if [ $PRESSED -gt 3 ]; then
        !            11:        halt -p
        !            12: else
        !            13:        reboot
        !            14: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>