[scripts] only touch /lib/rc/init.d/softlevel if parent dir exists
This commit is contained in:
parent
12df9b25cd
commit
5f5b8b42e5
@ -90,7 +90,7 @@ rm /var/lib/entropy/logs -rf
|
|||||||
rm -rf /install-data
|
rm -rf /install-data
|
||||||
|
|
||||||
# Generate openrc cache
|
# Generate openrc cache
|
||||||
touch /lib/rc/init.d/softlevel
|
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
|
||||||
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
||||||
/etc/init.d/savecache start
|
/etc/init.d/savecache start
|
||||||
/etc/init.d/savecache zap
|
/etc/init.d/savecache zap
|
||||||
|
@ -76,7 +76,7 @@ done
|
|||||||
rm /var/lib/entropy/logs -rf
|
rm /var/lib/entropy/logs -rf
|
||||||
|
|
||||||
# Generate openrc cache
|
# Generate openrc cache
|
||||||
touch /lib/rc/init.d/softlevel
|
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
|
||||||
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
||||||
/etc/init.d/savecache start
|
/etc/init.d/savecache start
|
||||||
/etc/init.d/savecache zap
|
/etc/init.d/savecache zap
|
||||||
|
@ -77,7 +77,7 @@ echo "Vacuum cleaning client db"
|
|||||||
equo rescue vacuum
|
equo rescue vacuum
|
||||||
|
|
||||||
# Generate openrc cache
|
# Generate openrc cache
|
||||||
touch /lib/rc/init.d/softlevel
|
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
|
||||||
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
||||||
/etc/init.d/savecache start
|
/etc/init.d/savecache start
|
||||||
/etc/init.d/savecache zap
|
/etc/init.d/savecache zap
|
||||||
|
@ -60,7 +60,7 @@ setup_startup_caches() {
|
|||||||
mount -t proc proc /proc
|
mount -t proc proc /proc
|
||||||
/lib/rc/bin/rc-depend -u
|
/lib/rc/bin/rc-depend -u
|
||||||
# Generate openrc cache
|
# Generate openrc cache
|
||||||
touch /lib/rc/init.d/softlevel
|
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
|
||||||
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
||||||
/etc/init.d/savecache start
|
/etc/init.d/savecache start
|
||||||
/etc/init.d/savecache zap
|
/etc/init.d/savecache zap
|
||||||
|
@ -41,7 +41,7 @@ setup_startup_caches() {
|
|||||||
mount -t proc proc /proc
|
mount -t proc proc /proc
|
||||||
/lib/rc/bin/rc-depend -u
|
/lib/rc/bin/rc-depend -u
|
||||||
# Generate openrc cache
|
# Generate openrc cache
|
||||||
touch /lib/rc/init.d/softlevel
|
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
|
||||||
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
||||||
/etc/init.d/savecache start
|
/etc/init.d/savecache start
|
||||||
/etc/init.d/savecache zap
|
/etc/init.d/savecache zap
|
||||||
|
@ -60,7 +60,7 @@ setup_startup_caches() {
|
|||||||
mount -t proc proc /proc
|
mount -t proc proc /proc
|
||||||
/lib/rc/bin/rc-depend -u
|
/lib/rc/bin/rc-depend -u
|
||||||
# Generate openrc cache
|
# Generate openrc cache
|
||||||
touch /lib/rc/init.d/softlevel
|
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
|
||||||
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
||||||
/etc/init.d/savecache start
|
/etc/init.d/savecache start
|
||||||
/etc/init.d/savecache zap
|
/etc/init.d/savecache zap
|
||||||
|
@ -269,7 +269,7 @@ setup_portage() {
|
|||||||
setup_startup_caches() {
|
setup_startup_caches() {
|
||||||
/lib/rc/bin/rc-depend -u
|
/lib/rc/bin/rc-depend -u
|
||||||
# Generate openrc cache
|
# Generate openrc cache
|
||||||
touch /lib/rc/init.d/softlevel
|
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
|
||||||
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
||||||
/etc/init.d/savecache start
|
/etc/init.d/savecache start
|
||||||
/etc/init.d/savecache zap
|
/etc/init.d/savecache zap
|
||||||
|
@ -16,7 +16,7 @@ rm -rf /install-data
|
|||||||
/lib/rc/bin/rc-depend -u
|
/lib/rc/bin/rc-depend -u
|
||||||
|
|
||||||
# Generate openrc cache
|
# Generate openrc cache
|
||||||
touch /lib/rc/init.d/softlevel
|
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
|
||||||
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
||||||
/etc/init.d/savecache start
|
/etc/init.d/savecache start
|
||||||
/etc/init.d/savecache zap
|
/etc/init.d/savecache zap
|
||||||
|
Loading…
Reference in New Issue
Block a user