From 240461780f6e4e9ec06da8ad3cd609d08e1c3fd3 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Sun, 5 Feb 2017 06:32:50 +0300 Subject: [PATCH] /etc/init.d/squash_layman script support added. --- sbin/gentoo-upgrade.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sbin/gentoo-upgrade.sh b/sbin/gentoo-upgrade.sh index 5f988d4..2c7a5f9 100755 --- a/sbin/gentoo-upgrade.sh +++ b/sbin/gentoo-upgrade.sh @@ -186,6 +186,12 @@ if [ $STAGE_CNT -eq $STAGE ]; then /etc/init.d/squash_portage restart [ 0 -ne $? ] && echo "Stage $STAGE: cann't restart squash_portage ;-( =======" && exit $STAGE fi + + # recreate layman squashfs files + if [[ -x /etc/init.d/squash_layman && "" != "`mount | grep '^aufs' | grep $PORTDIR`" ]]; then + /etc/init.d/squash_layman restart + [ 0 -ne $? ] && echo "Stage $STAGE: cann't restart squash_layman ;-( =======" && exit $STAGE + fi fi let STAGE_CNT++