1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2022-06-18 13:07:57 +02:00
parent 02cade7643
commit 15032839ea

View file

@ -4,11 +4,11 @@
_set_fsck() { _set_fsck() {
uci -q batch <<-EOF >/dev/null uci -q batch <<-EOF >/dev/null
set "fstab.$1.enabled=1" set "fstab.$1.enabled=1"
set "fstab.$1.enable_fsck=1" set "fstab.$1.enabled_fsck=1"
EOF 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' uci -q set fstab.@global[0].check_fs='1'
config_load fstab config_load fstab
config_foreach _set_fsck mount config_foreach _set_fsck mount