summaryrefslogtreecommitdiff
path: root/fish/.local/bin/sysctls.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fish/.local/bin/sysctls.sh')
-rwxr-xr-xfish/.local/bin/sysctls.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/fish/.local/bin/sysctls.sh b/fish/.local/bin/sysctls.sh
new file mode 100755
index 0000000..ab72c13
--- /dev/null
+++ b/fish/.local/bin/sysctls.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/bash
+
+if [[ "$1" == "poweroff" ]]; then
+ doas poweroff
+elif [[ "$1" == "reboot" ]]; then
+ doas reboot
+fi