mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix another typo and populate fstab only if needed
This commit is contained in:
parent
02cade7643
commit
15032839ea
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue