1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash check() { # Only include the module if another module requires it return 255 } depends() { echo "debug" } install() { inst poweroff inst_hook shutdown-emergency 000 "$moddir/hard-off.sh" inst_hook emergency 000 "$moddir/hard-off.sh" }