I have set dhcp for eth0.
set interfaces ethernet eth0 address ‘dhcp’
when I input “set protocols static route 0.0.0.0/0 dhcp-interface” for eth0, I think it can be auto-completed. BUT it can’t
after I lookup implementation in
file, and the following line maybe wrong
array=( $(ls -1 /var/lib/dhcp/en* /var/lib/dhcp/dhclient_eth*.conf /var/lib/dhcp/br* /var/lib/dhcp/bond* 2>/dev/null) ) ;
it may like:
array=( (ls -1 /var/lib/dhcp/dhclient_*.conf 2>/dev/null | sed -E -e 's/^.*?_(.*?)\.conf/\1/g’) ) ;