diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/rl-system.init | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init index 82451b60..779a7610 100755 --- a/scripts/rl-system.init +++ b/scripts/rl-system.init @@ -167,6 +167,16 @@ write_iftab () rm -f $IFTAB for i in ${!cfg_eth_hwid[@]} ; do + echo "etha$i mac ${cfg_eth_hwid[$i]}" >> $IFTAB + done +} + +write_iftab_real () +{ + local -i i + + rm -f $IFTAB + for i in ${!cfg_eth_hwid[@]} ; do echo "eth$i mac ${cfg_eth_hwid[$i]}" >> $IFTAB done } @@ -253,7 +263,7 @@ itfmess () maybe_ifrename () { if [ -e $IFTAB ] ; then - ifrename -d -p -t + ifrename -d -p fi } @@ -324,6 +334,8 @@ start () { set_reboot_on_panic itfmess maybe_ifrename + write_iftab_real + maybe_ifrename add_new_serial_if reset_promiscous_arp_response set_ip_forwarding |