Skip to content

Commit

Permalink
Added a new shim of shutdown for Alpine.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Oct 21, 2024
1 parent 89aa10c commit 1179f4c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 29 deletions.
2 changes: 1 addition & 1 deletion build_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024m21a
2024m30a
1 change: 1 addition & 0 deletions src/alpine/sh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ echo "Post-install..."
mkdir -p /run/sshd
rc-update add sshd default
cp ./systemctl /bin
cp ./shutdown /sbin
exit
10 changes: 10 additions & 0 deletions src/alpine/sh/shutdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
case $1 in
"now")
poweroff
;;
*)
poweroff -d ${1/s/}
;;
esac
exit
1 change: 1 addition & 0 deletions src/slimalp/sh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ echo "Post-install..."
mkdir -p /run/sshd
rc-update add sshd default
cp ./systemctl /bin
cp ./shutdown /sbin
exit
1 change: 1 addition & 0 deletions src/slimalp/sh/shutdown
28 changes: 0 additions & 28 deletions src/slimalp/sh/systemctl

This file was deleted.

1 change: 1 addition & 0 deletions src/slimalp/sh/systemctl

0 comments on commit 1179f4c

Please sign in to comment.