]>
Commit | Line | Data |
---|---|---|
b5e633b9 PZ |
1 | --- dhcp-3.0.3/client/scripts/linux.orig 2006-02-08 23:30:26.277493500 +0100 |
2 | +++ dhcp-3.0.3/client/scripts/linux 2006-02-08 23:32:49.746459750 +0100 | |
3 | @@ -22,6 +22,22 @@ | |
4 | # 4. TIMEOUT not tested. ping has a flag I don't know, and I'm suspicious | |
5 | # of the $1 in its args. | |
6 | ||
7 | +if [ -n "${dhc_dbus}" ]; then | |
8 | + if [ -x /usr/bin/dbus-send ]; then | |
9 | + /usr/bin/dbus-send \ | |
10 | + --system \ | |
11 | + --dest=com.redhat.dhcp \ | |
12 | + --type=method_call \ | |
13 | + /com/redhat/dhcp/$interface \ | |
14 | + com.redhat.dhcp.set \ | |
15 | + 'string:'"`env | /bin/egrep -v '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"; | |
16 | + | |
17 | + if (( ( dhc_dbus & 31 ) == 31 )); then | |
18 | + exit 0; | |
19 | + fi; | |
20 | + fi; | |
21 | +fi; | |
22 | + | |
23 | make_resolv_conf() { | |
24 | if [ "x$new_domain_name" != x ] && [ x"$new_domain_name_servers" != x ]; then | |
25 | echo search $new_domain_name >/etc/resolv.conf |