[scripts] only touch /lib/rc/init.d/softlevel if parent dir exists

This commit is contained in:
Fabio Erculiani
2012-09-05 13:52:06 +02:00
parent 12df9b25cd
commit 5f5b8b42e5
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ echo "Vacuum cleaning client db"
equo rescue vacuum
# 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
/etc/init.d/savecache start
/etc/init.d/savecache zap