You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
385 B

#!/bin/sh
. shell-config
defcfg=/etc/net/ifaces/default/options-eth
[ -f defcfg ] || exit 0
if [ -x /usr/sbin/NetworkManager -o -x /usr/sbin/connmand ]; then
shell_config_set "$defcfg" NM_CONTROLLED yes
shell_config_set "$defcfg" DISABLED yes
if [ NM_Native = 'yes' ]; then
shell_config_set "$defcfg" BOOTPROTO static
else
shell_config_set "$defcfg" BOOTPROTO dhcp
fi
fi