summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrecipes-kernel/rs9113/files/rs9113/mts-rm-rs91138
1 files changed, 7 insertions, 1 deletions
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
+