sh/init.sh: fix the test for cache restoration
This fixes the test for cache restoration since we are no longer caching the dependency tree.
This commit is contained in:
parent
b02ff466fa
commit
ac53c9a658
@ -57,7 +57,7 @@ case "$(openrc --sys)" in
|
||||
esac
|
||||
retval=$?
|
||||
|
||||
if [ -e "$RC_LIBEXECDIR"/cache/deptree ]; then
|
||||
if [ -e "$RC_LIBEXECDIR"/cache/softlevel ]; then
|
||||
cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null
|
||||
fi
|
||||
|
||||
|
@ -34,7 +34,7 @@ ebegin "Creating $RC_SVCDIR"
|
||||
mkdir -p $RC_SVCDIR
|
||||
eend $?
|
||||
|
||||
if [ -e "$RC_LIBEXECDIR"/cache/deptree ]; then
|
||||
if [ -e "$RC_LIBEXECDIR"/cache/softlevel ]; then
|
||||
cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null
|
||||
fi
|
||||
|
||||
|
@ -36,7 +36,7 @@ ebegin "Creating $RC_SVCDIR"
|
||||
mkdir -p $RC_SVCDIR
|
||||
eend $?
|
||||
|
||||
if [ -e "$RC_LIBEXECDIR"/cache/deptree ]; then
|
||||
if [ -e "$RC_LIBEXECDIR"/cache/softlevel ]; then
|
||||
cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null
|
||||
fi
|
||||
|
||||
|
@ -85,7 +85,7 @@ if grep -Eq "[[:space:]]+xenfs$" /proc/filesystems; then
|
||||
eend $?
|
||||
fi
|
||||
|
||||
if [ -e "$RC_LIBEXECDIR"/cache/deptree ]; then
|
||||
if [ -e "$RC_LIBEXECDIR"/cache/softlevel ]; then
|
||||
cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user