mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
de6c207899
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> (cherry picked from commit c90db07cf9c325df5e1855681e9b7729e24ab090)
16 lines
389 B
Bash
Executable File
16 lines
389 B
Bash
Executable File
#!/bin/sh
|
|
|
|
uci -q get system.@imm_init[0] > "/dev/null" || uci -q add system imm_init > "/dev/null"
|
|
uci -q get system.@imm_init[0].ipv6 > "/dev/null" && exit 0
|
|
|
|
uci -q set dhcp.lan.ra="hybrid"
|
|
uci -q set dhcp.lan.ndp="hybrid"
|
|
uci -q set dhcp.lan.dhcpv6="hybrid"
|
|
uci -q set dhcp.lan.ra_management="1"
|
|
uci -q commit dhcp
|
|
|
|
uci -q set system.@imm_init[0].ipv6="1"
|
|
uci -q commit system
|
|
|
|
exit 0
|