2006-01-18 Robert Love <rml@novell.com>
* src/NetworkManager.c, src/NetworkManagerSystem.h, src/nm-device.c: Allow backends to flag a device (in whatever distro-dependent way they so desire) as disabled. NM will ignore any such device. * src/backends/NetworkManagerDebian.c, src/backends/NetworkManagerRedHat.c, src/backends/NetworkManagerSlackware.c: Add stub function nm_system_device_get_disabled() that always returns FALSE (enabled). * src/backends/NetworkManagerSuSE.c: Add system_disabled field to the SUSE-specific configuration structure. Fill it in from the NM_CONTROLLED variable in the system networking scripts. If this var exists and is "no", we ignore the device. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1361 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -370,6 +370,20 @@ gboolean nm_system_device_get_use_dhcp (NMDevice *dev)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* nm_system_device_get_disabled
|
||||
*
|
||||
* Return whether the distro-specific system config tells us to use
|
||||
* dhcp for this device.
|
||||
*
|
||||
*/
|
||||
gboolean nm_system_device_get_disabled (NMDevice *dev)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* nm_system_activate_nis
|
||||
*
|
||||
|
Reference in New Issue
Block a user