1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Merge branch 'test' into develop

This commit is contained in:
suyuan168 2022-06-18 21:33:45 +08:00
commit b3109983c6
2 changed files with 4 additions and 4 deletions

View file

@ -4,11 +4,11 @@
_set_fsck() {
uci -q batch <<-EOF >/dev/null
set "fstab.$1.enabled=1"
set "fstab.$1.enable_fsck=1"
set "fstab.$1.enabled_fsck=1"
EOF
}
/sbin/block detect > /etc/config/fstab
[ -z "$(uci show fstab | grep mount)" ] && /sbin/block detect > /etc/config/fstab
uci -q set fstab.@global[0].check_fs='1'
config_load fstab
config_foreach _set_fsck mount