web: regenerate interface_config.js on every boot
Customization is still available via custom-interface_config.js. This way we will slowly get rid of the deprecated interface_config.js as all options move to config.js.
This commit is contained in:
@@ -82,10 +82,7 @@ if [[ -f /config/custom-config.js ]]; then
|
|||||||
cat /config/custom-config.js >> /config/config.js
|
cat /config/custom-config.js >> /config/config.js
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f /config/interface_config.js || -f /config/custom-interface_config.js ]]; then
|
cp /defaults/interface_config.js /config/interface_config.js
|
||||||
cp /defaults/interface_config.js /config/interface_config.js
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f /config/custom-interface_config.js ]]; then
|
if [[ -f /config/custom-interface_config.js ]]; then
|
||||||
cat /config/custom-interface_config.js >> /config/interface_config.js
|
cat /config/custom-interface_config.js >> /config/interface_config.js
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user