From 2cbf3cba9f6410fa8d3dedf9da5e57a0d8573861 Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 22 Mar 2022 18:45:25 -0500 Subject: Fix the mts-rm-rs9113 remove package for the overlayfs --- recipes-kernel/rs9113/files/rs9113/mts-rm-rs9113 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes-kernel/rs9113/files/rs9113/mts-rm-rs9113 b/recipes-kernel/rs9113/files/rs9113/mts-rm-rs9113 index a7a30c2..d914c06 100755 --- a/recipes-kernel/rs9113/files/rs9113/mts-rm-rs9113 +++ b/recipes-kernel/rs9113/files/rs9113/mts-rm-rs9113 @@ -25,7 +25,7 @@ trap cleanup EXIT if [[ -f ${sysdir}/capability/wifi ]] ; then if [[ -f /opt/rs9113/onebox_wlan_nongpl.ko ]] && (( $(cat ${sysdir}/capability/wifi) == 0)) ; then logger -sp daemon.info 'Attempting to remove rs9113 drivers from non-wifi device' - rmount=$(grep '^/dev/root' /proc/mounts) + rmount=$(egrep '^[^[:space:]]+[[:space:]]+/[[:space:]]' /proc/mounts) remount=0 if [[ $rmount =~ [[:space:],]ro[[:space:],] ]] ; then remount=1 @@ -49,3 +49,9 @@ if [[ -f ${sysdir}/capability/wifi ]] ; then update-rc.d -f mts-rm-rs9113 remove fi + +# Examples: +# /dev/root /orig jffs2 ro,relatime 0 0 +# overlay / overlay rw,noatime,lowerdir=/,upperdir=/mnt/user/upper,workdir=/mnt/user/work 0 0 +# /dev/root / jffs2 rw,relatime 0 0 + -- cgit v1.2.3