git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30501 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
edc937f926
commit
23d98ff980
|
@ -69,8 +69,13 @@ if [ `basename $blkdev` != "block" ]; then
|
|||
}
|
||||
|
||||
grep -q "/dev/$device" /proc/swaps || grep -q "/dev/$device" /proc/mounts || {
|
||||
[ "$anon_mount" -eq 1 ] && [ -z "$use_device" ] && {
|
||||
( mkdir -p /mnt/$device && mount /dev/$device /mnt/$device ) 2>&1 | tee /proc/self/fd/2 | logger -t 'fstab'
|
||||
[ "$anon_mount" -eq 1 -a -z "$use_device" ] && {
|
||||
case "$device" in
|
||||
mtdblock*) ;;
|
||||
*)
|
||||
( mkdir -p /mnt/$device && mount /dev/$device /mnt/$device ) 2>&1 | tee /proc/self/fd/2 | logger -t 'fstab'
|
||||
;;
|
||||
esac
|
||||
}
|
||||
}
|
||||
reset_dev_section_cb
|
||||
|
|
Loading…
Reference in New Issue