mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Set FS check by default
This commit is contained in:
parent
e90e6eab51
commit
29b20d0e98
1 changed files with 4 additions and 2 deletions
|
@ -8,8 +8,6 @@ uci -q batch <<-EOF >/dev/null
|
|||
commit rpcd
|
||||
set luci.apply.timeout='20'
|
||||
commit luci
|
||||
set fstab.@global[0].check_fs='1'
|
||||
commit fstab
|
||||
EOF
|
||||
|
||||
if [ "$(uci -q get rpcd.@rpcd[0].socket)" != "/var/run/ubus/ubus.sock" ]; then
|
||||
|
@ -20,6 +18,10 @@ if [ "$(uci -q get rpcd.@rpcd[0].socket)" != "/var/run/ubus/ubus.sock" ]; then
|
|||
fi
|
||||
|
||||
/sbin/block detect > /etc/config/fstab
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set fstab.@global[0].check_fs='1'
|
||||
commit fstab
|
||||
EOF
|
||||
|
||||
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep raspberry)" ] && [ "$(uci -q get openmptcprouter.settings.scaling_governor)" != "performance" ] && {
|
||||
# force CPU speed for RPI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue