aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.shutdown b/rc.shutdown
index a9ca570..848f114 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -53,3 +53,5 @@ for file in /etc/init/*.post.shutdown ; do
[ -f "$file" ] && \
out "Running $file" && . "$file"
done
+
+case "$1" in reboot) shalt r ;; poweroff) shalt p ;; esac