mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
78 lines
2.4 KiB
Diff
78 lines
2.4 KiB
Diff
diff --git a/src/dhcp-manager/nm-dhcp-dhclient.c b/src/dhcp-manager/nm-dhcp-dhclient.c
|
|
index 0932139..5b5aee8 100644
|
|
--- a/src/dhcp-manager/nm-dhcp-dhclient.c
|
|
+++ b/src/dhcp-manager/nm-dhcp-dhclient.c
|
|
@@ -68,10 +68,6 @@ const char *
|
|
nm_dhcp_dhclient_get_path (const char *try_first)
|
|
{
|
|
static const char *dhclient_paths[] = {
|
|
- "/sbin/dhclient",
|
|
- "/usr/sbin/dhclient",
|
|
- "/usr/pkg/sbin/dhclient",
|
|
- "/usr/local/sbin/dhclient",
|
|
NULL
|
|
};
|
|
const char **path = dhclient_paths;
|
|
diff --git a/src/dhcp-manager/nm-dhcp-dhcpcd.c b/src/dhcp-manager/nm-dhcp-dhcpcd.c
|
|
index 237661f..48bc33f 100644
|
|
--- a/src/dhcp-manager/nm-dhcp-dhcpcd.c
|
|
+++ b/src/dhcp-manager/nm-dhcp-dhcpcd.c
|
|
@@ -51,10 +51,6 @@ const char *
|
|
nm_dhcp_dhcpcd_get_path (const char *try_first)
|
|
{
|
|
static const char *dhcpcd_paths[] = {
|
|
- "/sbin/dhcpcd",
|
|
- "/usr/sbin/dhcpcd",
|
|
- "/usr/pkg/sbin/dhcpcd",
|
|
- "/usr/local/sbin/dhcpcd",
|
|
NULL
|
|
};
|
|
const char **path = dhcpcd_paths;
|
|
diff --git a/src/nm-device.c b/src/nm-device.c
|
|
index 1dc94ee..e60f3c8 100644
|
|
--- a/src/nm-device.c
|
|
+++ b/src/nm-device.c
|
|
@@ -1321,8 +1321,7 @@ aipd_start (NMDevice *self, NMDeviceStateReason *reason)
|
|
char *argv[6], *cmdline;
|
|
const char **aipd_binary = NULL;
|
|
static const char *aipd_paths[] = {
|
|
- "/usr/sbin/avahi-autoipd",
|
|
- "/usr/local/sbin/avahi-autoipd",
|
|
+ "@avahi@/sbin/avahi-autoipd",
|
|
NULL
|
|
};
|
|
int i = 0;
|
|
@@ -2555,7 +2554,7 @@ share_init (void)
|
|
}
|
|
|
|
for (iter = modules; *iter; iter++) {
|
|
- char *argv[3] = { "/sbin/modprobe", *iter, NULL };
|
|
+ char *argv[3] = { "/var/run/current-system/sw/bin/modprobe", *iter, NULL };
|
|
char *envp[1] = { NULL };
|
|
GError *error = NULL;
|
|
|
|
diff --git a/src/ppp-manager/nm-ppp-manager.c b/src/ppp-manager/nm-ppp-manager.c
|
|
index 59698c3..7dba0f7 100644
|
|
--- a/src/ppp-manager/nm-ppp-manager.c
|
|
+++ b/src/ppp-manager/nm-ppp-manager.c
|
|
@@ -661,9 +661,7 @@ static inline const char *
|
|
nm_find_pppd (void)
|
|
{
|
|
static const char *pppd_binary_paths[] = {
|
|
- "/usr/local/sbin/pppd",
|
|
- "/usr/sbin/pppd",
|
|
- "/sbin/pppd",
|
|
+ "@ppp@/sbin/pppd",
|
|
NULL
|
|
};
|
|
|
|
@@ -988,7 +986,7 @@ nm_ppp_manager_start (NMPPPManager *manager,
|
|
|
|
/* Make sure /dev/ppp exists (bgo #533064) */
|
|
if (stat ("/dev/ppp", &st) || !S_ISCHR (st.st_mode))
|
|
- ignored = system ("/sbin/modprobe ppp_generic");
|
|
+ ignored = system ("/var/run/current-system/sw/bin/modprobe ppp_generic");
|
|
|
|
connection = nm_act_request_get_connection (req);
|
|
g_assert (connection);
|