cleanfs: repair /var/run symlink to /run if it not exist.

This commit is contained in:
Arne Fitzenreiter
2014-07-17 16:03:08 +02:00
parent e055b1105a
commit 5b71042c54
2 changed files with 8 additions and 0 deletions

View File

@@ -71,6 +71,13 @@ create_files() {
case "${1}" in
start)
if [[ ! -L "/var/run" ]]; then
boot_mesg "Repair /var/run symlink to /run..."
mv -u /var/run/* /run/ 2>&1 > /dev/null
rm -rf /var/run
ln -s ../run /var/run
fi
boot_mesg -n "Cleaning file systems:" ${INFO}
boot_mesg -n " /tmp" ${NORMAL}