tweak rc.local and rc.shutdown

This commit is contained in:
Muhammad Herdiansyah 2021-10-28 21:48:43 +07:00
parent 796b778f65
commit ba39121523
2 changed files with 12 additions and 8 deletions

View file

@ -1,10 +1,12 @@
#!/bin/sh
# /etc/rc.local -- rc.local for Artix Linux
# /etc/dinit.d/config/rc.local -- rc.local for Artix Linux
#
for file in /etc/local.d/*.start; do
sh "$file"
done
if [ -d /etc/local.d ]; then
for file in /etc/local.d/*.start; do
sh "$file"
done
fi
# Enter your custom commands here.

View file

@ -1,10 +1,12 @@
#!/bin/sh
# /etc/rc.shutdown -- rc.shutdown for Artix Linux
# /etc/dinit.d/config/rc.shutdown -- rc.shutdown for Artix Linux
#
for file in /etc/local.d/*.shutdown; do
sh "$file"
done
if [ -d /etc/local.d ]; then
for file in /etc/local.d/*.shutdown; do
sh "$file"
done
fi
# Enter your custom commands here.