]> git.pld-linux.org Git - packages/dhcp.git/blob - dhcp-client-script-redhat.patch
- added try-restart and force-reload options
[packages/dhcp.git] / dhcp-client-script-redhat.patch
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  }
6  
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)"
15 +
16 +       if [ $(($dhc_dbus & 31)) -eq 31 ]; then
17 +               exit 0
18 +       fi
19 +fi
20 +
21  # Invoke the local dhcp client enter hooks, if they exist.
22  if [ -f /etc/dhclient-enter-hooks ]; then
23         exit_status=0
This page took 0.032419 seconds and 3 git commands to generate.