update-02.21

This commit is contained in:
github-actions[bot] 2022-02-21 20:32:57 +08:00
parent ca7ae89baa
commit 61a1e0ac76
1 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,12 @@ grep -q "host/luci" /etc/config/nginx || {
service nginx reload
}
grep -q "ifname 'br-lan'" /etc/config/network || {
sed -i "s/\(option device '\(.*\)'\)/\1\n\toption ifname '\2'/" /etc/config/network
}
([ -x /bin/bash ] && ! grep -q "^root.*bash" /etc/passwd) && sed -i "s/^\(root.*\/\)ash/\1bash/g" /etc/passwd
# [[ "$(df | grep overlay)" && ! "$(df | grep /rom/overlay)" ]] && firstboot
version=`uci -q get base_config.@status[0].version`