[scripts] touch /run/openrc/softlevel if dir exists

This commit is contained in:
Fabio Erculiani 2012-09-05 13:34:46 +02:00
parent 6b2eade910
commit 12df9b25cd
8 changed files with 8 additions and 0 deletions

View File

@ -91,6 +91,7 @@ rm -rf /install-data
# Generate openrc cache # Generate openrc cache
touch /lib/rc/init.d/softlevel touch /lib/rc/init.d/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

View File

@ -77,6 +77,7 @@ rm /var/lib/entropy/logs -rf
# Generate openrc cache # Generate openrc cache
touch /lib/rc/init.d/softlevel touch /lib/rc/init.d/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

View File

@ -78,6 +78,7 @@ equo rescue vacuum
# Generate openrc cache # Generate openrc cache
touch /lib/rc/init.d/softlevel touch /lib/rc/init.d/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

View File

@ -61,6 +61,7 @@ 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 touch /lib/rc/init.d/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
ldconfig ldconfig

View File

@ -42,6 +42,7 @@ 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 touch /lib/rc/init.d/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
ldconfig ldconfig

View File

@ -61,6 +61,7 @@ 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 touch /lib/rc/init.d/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
ldconfig ldconfig

View File

@ -270,6 +270,7 @@ 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 touch /lib/rc/init.d/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
ldconfig ldconfig

View File

@ -17,6 +17,7 @@ rm -rf /install-data
# Generate openrc cache # Generate openrc cache
touch /lib/rc/init.d/softlevel touch /lib/rc/init.d/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