summaryrefslogtreecommitdiff
path: root/templates/system/options
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/options')
-rw-r--r--templates/system/options/ctrl-alt-del-action/node.def8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/system/options/ctrl-alt-del-action/node.def b/templates/system/options/ctrl-alt-del-action/node.def
index d13fe3c5..8ee98ce8 100644
--- a/templates/system/options/ctrl-alt-del-action/node.def
+++ b/templates/system/options/ctrl-alt-del-action/node.def
@@ -12,14 +12,10 @@ end:
if [ $VAR(@) == "disable" ]; then
sudo sh -c "sed -i -e 's/^ca.*/ca:12345:ctrlaltdel:/' \
/etc/inittab"
- fi
-
- if [ $VAR(@) == "reboot" ]; then
+ elif [ $VAR(@) == "reboot" ]; then
sudo sh -c "sed -i -e 's/^ca.*/ca:12345:ctrlaltdel:\/sbin\/reboot/' \
/etc/inittab"
- fi
-
- if [ $VAR(@) == "poweroff" ]; then
+ elif [ $VAR(@) == "poweroff" ]; then
sudo sh -c "sed -i -e 's/^ca.*/ca:12345:ctrlaltdel:\/sbin\/shutdown -h now/' \
/etc/inittab"
fi