09-18-2017, 06:11 AM
Greetings,
In this segment I'm pointing out that the sudo poweroff and sudo reboot commands are legacy commands ( see the man pages ). Since systemd the systemctl command should be used with either the poweroff or reboot parms. I have changed the Pb_poweroff.sh script to accommodate this change:
Pb_poweroff.sh
In this segment I'm pointing out that the sudo poweroff and sudo reboot commands are legacy commands ( see the man pages ). Since systemd the systemctl command should be used with either the poweroff or reboot parms. I have changed the Pb_poweroff.sh script to accommodate this change:
Pb_poweroff.sh
Code:
#!/bin/sh
if [ "$1" = "OFF" ]
then
systemctl poweroff
else
systemctl reboot
fi
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )