automount: skip some partition

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
lean 2022-04-03 13:24:18 +08:00 committed by Tianling Shen
parent 6f6d3cc303
commit cb70676606
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -6,7 +6,7 @@
blkdev=`dirname $DEVPATH`
basename=`basename $blkdev`
device=`basename $DEVPATH`
skip=`block info | sed 's/\(.*\): .*/\1/' | grep -q $device ; echo $?`
skip=`block info | grep -vE '(f2fs|kernel|squashfs)' | sed 's/\(.*\): .*/\1/' | grep -q $device ; echo $?`
path=$DEVPATH
if [ $basename != "block" ] && [ -z "${device##sd*}" ] && [ $skip -eq 1 ]; then