mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(snippets): add shutdown notes
This commit is contained in:
16
snippets/shutdown.sh
Normal file
16
snippets/shutdown.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# Poweroff immediately
|
||||||
|
sudo shutdown now
|
||||||
|
sudo shutdown -h now
|
||||||
|
sudo shutdown -P +0 --no-wall
|
||||||
|
|
||||||
|
# Reboot in 1 minutes
|
||||||
|
sudo shutdown -r '+15'
|
||||||
|
sudo shutdown -r '+15' 'heyo, reboot time!'
|
||||||
|
|
||||||
|
# Show pending shutdown actions and time if any
|
||||||
|
sudo shutdown --show
|
||||||
|
|
||||||
|
# Cancel pending shutdowns
|
||||||
|
sudo shutdown -c
|
||||||
Reference in New Issue
Block a user