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
|
esac
|
||||||
retval=$?
|
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
|
cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ ebegin "Creating $RC_SVCDIR"
|
|||||||
mkdir -p $RC_SVCDIR
|
mkdir -p $RC_SVCDIR
|
||||||
eend $?
|
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
|
cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ ebegin "Creating $RC_SVCDIR"
|
|||||||
mkdir -p $RC_SVCDIR
|
mkdir -p $RC_SVCDIR
|
||||||
eend $?
|
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
|
cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ if grep -Eq "[[:space:]]+xenfs$" /proc/filesystems; then
|
|||||||
eend $?
|
eend $?
|
||||||
fi
|
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
|
cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user