|
@@ -1,16 +1,19 @@
|
|
|
-if [ ! -f /etc/config/placeholder ]; then
|
|
|
+
|
|
|
+test $version -lt 2 && {
|
|
|
uci del turboacc.config.sw_flow
|
|
|
uci commit turboacc
|
|
|
uci set system.@system[0].zram_size_mb='100'
|
|
|
uci set system.@system[0].zram_comp_algo='lz4'
|
|
|
uci commit system
|
|
|
|
|
|
-uci set snmpd.general.enabled="0"
|
|
|
-uci commit snmpd
|
|
|
+ uci set snmpd.general.enabled="0"
|
|
|
+ uci commit snmpd
|
|
|
|
|
|
-fi
|
|
|
+ version=2
|
|
|
+}
|
|
|
|
|
|
-touch /etc/config/placeholder
|
|
|
+uci set base_config.@status[0].version=$version
|
|
|
+uci commit base_config
|
|
|
|
|
|
sed -i '$a src/gz openwrt_custom https://op.supes.top/packages/x64' /etc/opkg/distfeeds.conf
|
|
|
|