#!/sbin/runscript description="Startup script for urfkill" depend() { need killprocs } start() { # This check should be made by ebuild. Need to keep it then? if [ ! -d /sys/class/rfkill ]; then ewarn "urfkilld: no killswitch detected!" return 1 else ebegin "Starting urfkilld" start-stop-daemon --start --quiet --exec /usr/libexec/urfkilld eend $? fi } stop() { ebegin "Stopping urfkilld" start-stop-daemon --stop --exec /usr/libexec/urfkilld eend $? }