50-net-nm 286 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh

. shell-config

defcfg=/etc/net/ifaces/default/options-eth

if  [ -x /usr/sbin/NetworkManager -o -x /usr/sbin/connmand ]; then
	shell_config_set "$defcfg" NM_CONTROLLED yes
	if [ -x /sbin/dhcpcd -o -x /sbin/dhclient ]; then
		shell_config_set "$defcfg" BOOTPROTO dhcp
	fi
fi