From a3312171646122be0b4b4bcbde6ef0cb6be954ad Mon Sep 17 00:00:00 2001
From: theridev <softwarezeris@gmail.com>
Date: Sat, 14 Dec 2024 17:53:49 +0100
Subject: [PATCH] Add support for other inits.

Suggested by https://git.yiffing.dev/xan
---
 nyaoff | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nyaoff b/nyaoff
index 552de79..e8cb52a 100644
--- a/nyaoff
+++ b/nyaoff
@@ -27,10 +27,10 @@ echo # sexy echo command
 # check which input the cutie entered :3
 if [[ $INPUT == "1" ]]; then
   echo -e "${PURPLE}meow~ Putting ur lil pc to sleep...${PINK}"
-  systemctl shutdown # eep
+  shutdown -h now # eep
 elif [[ $INPUT == "2" ]]; then
   echo -e "${GREEN}Nyaa~ Rebwooting machine... See ya :D ${PINK}"
-  systemctl reboot # reboowting
+  shutdown -r now # reboowting
 else               # oopsie
   echo -e "${RED}Oopsie~ Invalid input. Nya, try again later!${PINK}"
 fi