Compare commits
1 Commits
20200905
...
20200905-2
Author | SHA1 | Date | |
---|---|---|---|
7aa0d2f443 |
@@ -1,10 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ ! -x @SYSCONFDIR@/rc.local ] && cat > @SYSCONFDIR@/rc.local << EOF
|
if [ ! -x @SYSCONFDIR@/rc.local ]; then
|
||||||
|
cat > @SYSCONFDIR@/rc.local << EOF
|
||||||
# @SYSCONFDIR@/rc.local -- rc.local for Artix Linux
|
# @SYSCONFDIR@/rc.local -- rc.local for Artix Linux
|
||||||
#
|
#
|
||||||
# Enter your custom commands here. It will be executed on stage 2
|
# Enter your custom commands here. It will be executed on stage 2
|
||||||
# before running services.
|
# before running services.
|
||||||
EOF
|
EOF
|
||||||
|
chmod +x @SYSCONFDIR@/rc.local
|
||||||
|
fi
|
||||||
|
|
||||||
. @SYSCONFDIR@/rc.local
|
. @SYSCONFDIR@/rc.local
|
||||||
|
@@ -1,10 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ ! -x @SYSCONFDIR@/rc.shutdown ] && cat > @SYSCONFDIR@/rc.shutdown << EOF
|
if [ ! -x @SYSCONFDIR@/rc.shutdown ]; then
|
||||||
|
cat > @SYSCONFDIR@/rc.shutdown << EOF
|
||||||
# @SYSCONFDIR@/rc.shutdown -- rc.shutdown for Artix Linux
|
# @SYSCONFDIR@/rc.shutdown -- rc.shutdown for Artix Linux
|
||||||
#
|
#
|
||||||
# Enter your custom commands here. It will be executed on stage 3
|
# Enter your custom commands here. It will be executed on stage 3
|
||||||
# after stopping services.
|
# after stopping services.
|
||||||
EOF
|
EOF
|
||||||
|
chmod +x @SYSCONFDIR@/rc.shutdown
|
||||||
|
fi
|
||||||
|
|
||||||
. @SYSCONFDIR@/rc.shutdown
|
. @SYSCONFDIR@/rc.shutdown
|
||||||
|
Reference in New Issue
Block a user