]>
Commit | Line | Data |
---|---|---|
e1d26541 JR |
1 | --- dhcp-3.1.0a3/client/scripts/linux.orig 2007-04-16 17:29:17.000000000 +0200 |
2 | +++ dhcp-3.1.0a3/client/scripts/linux 2007-04-16 18:04:52.000000000 +0200 | |
3 | @@ -65,6 +65,20 @@ | |
4 | exit $exit_status | |
5 | } | |
b5e633b9 | 6 | |
e1d26541 JR |
7 | +if [ -n "$dhc_dbus" -a -x /usr/bin/dbus-send ]; then |
8 | + /usr/bin/dbus-send \ | |
9 | + --system \ | |
10 | + --dest=com.redhat.dhcp \ | |
11 | + --type=method_call \ | |
12 | + /com/redhat/dhcp/$interface \ | |
13 | + com.redhat.dhcp.set \ | |
14 | + 'string:'"$(unset PATH SHLVL _ PWD dhc_dbus ; env)" | |
b5e633b9 | 15 | + |
e1d26541 JR |
16 | + if [ $(($dhc_dbus & 31)) -eq 31 ]; then |
17 | + exit 0 | |
18 | + fi | |
19 | +fi | |
b5e633b9 | 20 | + |
e1d26541 JR |
21 | # Invoke the local dhcp client enter hooks, if they exist. |
22 | if [ -f /etc/dhclient-enter-hooks ]; then | |
23 | exit_status=0 |