diff options
author | Ross Burton <ross@openedhand.com> | 2007-01-19 20:55:09 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-01-19 20:55:09 +0000 |
commit | 776490a40df8d1b4a84a07dd3e13bd10cd4c8bdd (patch) | |
tree | 489df56bf4725a99dc095a17cdfe7ef4c680ac82 /meta-extras/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch | |
parent | 6564355fb79604e818722ae3f6acf3dbb0665fca (diff) | |
download | poky-776490a40df8d1b4a84a07dd3e13bd10cd4c8bdd.tar.gz |
Add dhcp3 and dhcdbd for Network Manager
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1175 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta-extras/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch')
-rw-r--r-- | meta-extras/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/meta-extras/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch b/meta-extras/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch new file mode 100644 index 0000000000..579d72f484 --- /dev/null +++ b/meta-extras/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch | |||
@@ -0,0 +1,84 @@ | |||
1 | --- client/scripts/bsdos | ||
2 | +++ client/scripts/bsdos | ||
3 | @@ -47,6 +47,11 @@ | ||
4 | . /etc/dhcp/dhclient-exit-hooks | ||
5 | fi | ||
6 | # probably should do something with exit status of the local script | ||
7 | + if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then | ||
8 | + dbus-send --system --dest=com.redhat.dhcp \ | ||
9 | + --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \ | ||
10 | + 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`" | ||
11 | + fi | ||
12 | exit $exit_status | ||
13 | } | ||
14 | |||
15 | --- client/scripts/freebsd | ||
16 | +++ client/scripts/freebsd | ||
17 | @@ -57,6 +57,11 @@ | ||
18 | . /etc/dhcp/dhclient-exit-hooks | ||
19 | fi | ||
20 | # probably should do something with exit status of the local script | ||
21 | + if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then | ||
22 | + dbus-send --system --dest=com.redhat.dhcp \ | ||
23 | + --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \ | ||
24 | + 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`" | ||
25 | + fi | ||
26 | exit $exit_status | ||
27 | } | ||
28 | |||
29 | --- client/scripts/linux | ||
30 | +++ client/scripts/linux | ||
31 | @@ -69,6 +69,11 @@ | ||
32 | . /etc/dhcp/dhclient-exit-hooks | ||
33 | fi | ||
34 | # probably should do something with exit status of the local script | ||
35 | + if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then | ||
36 | + dbus-send --system --dest=com.redhat.dhcp \ | ||
37 | + --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \ | ||
38 | + 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`" | ||
39 | + fi | ||
40 | exit $exit_status | ||
41 | } | ||
42 | |||
43 | --- client/scripts/netbsd | ||
44 | +++ client/scripts/netbsd | ||
45 | @@ -47,6 +47,11 @@ | ||
46 | . /etc/dhcp/dhclient-exit-hooks | ||
47 | fi | ||
48 | # probably should do something with exit status of the local script | ||
49 | + if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then | ||
50 | + dbus-send --system --dest=com.redhat.dhcp \ | ||
51 | + --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \ | ||
52 | + 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`" | ||
53 | + fi | ||
54 | exit $exit_status | ||
55 | } | ||
56 | |||
57 | --- client/scripts/openbsd | ||
58 | +++ client/scripts/openbsd | ||
59 | @@ -47,6 +47,11 @@ | ||
60 | . /etc/dhcp/dhclient-exit-hooks | ||
61 | fi | ||
62 | # probably should do something with exit status of the local script | ||
63 | + if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then | ||
64 | + dbus-send --system --dest=com.redhat.dhcp \ | ||
65 | + --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \ | ||
66 | + 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`" | ||
67 | + fi | ||
68 | exit $exit_status | ||
69 | } | ||
70 | |||
71 | --- client/scripts/solaris | ||
72 | +++ client/scripts/solaris | ||
73 | @@ -47,6 +47,11 @@ | ||
74 | . /etc/dhcp/dhclient-exit-hooks | ||
75 | fi | ||
76 | # probably should do something with exit status of the local script | ||
77 | + if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then | ||
78 | + dbus-send --system --dest=com.redhat.dhcp \ | ||
79 | + --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \ | ||
80 | + 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`" | ||
81 | + fi | ||
82 | exit $exit_status | ||
83 | } | ||
84 | |||