tweak rc.local and rc.shutdown
This commit is contained in:
parent
796b778f65
commit
ba39121523
2 changed files with 12 additions and 8 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue