Compare commits
2 Commits
20200905
...
20200905-3
Author | SHA1 | Date | |
---|---|---|---|
96a0aefa1d | |||
7aa0d2f443 |
@@ -1,10 +1,15 @@
|
|||||||
#!/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
|
# Execute rc.local only once.
|
||||||
|
# If artix-branding-base exists, that one will execute rc.local instead.
|
||||||
|
[ ! -x @SYSCONFDIR@/local.d/local.start ] && . @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