aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dhcp/files
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2009-01-13 12:31:30 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2009-01-13 12:31:30 -0200
commitba1b9ec8f8c118ddf015d2ff2faaac098c2693b7 (patch)
treefd47d2f9f80bd98b02603629bdb4d96195dd0dc6 /packages/dhcp/files
parent77e34a2586f1711868ee17ca89d9bd467cdac0b1 (diff)
downloadopenembedded-ba1b9ec8f8c118ddf015d2ff2faaac098c2693b7.tar.gz
dhcp: fixes dhclient dbus support to properly propagate the exit status
Diffstat (limited to 'packages/dhcp/files')
-rw-r--r--packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch b/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch
index 579d72f484..f470d64488 100644
--- a/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch
+++ b/packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch
@@ -4,7 +4,7 @@
. /etc/dhcp/dhclient-exit-hooks
fi
# probably should do something with exit status of the local script
-+ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ if [ x$dhc_dbus != x ]; then
+ dbus-send --system --dest=com.redhat.dhcp \
+ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
+ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
@@ -18,7 +18,7 @@
. /etc/dhcp/dhclient-exit-hooks
fi
# probably should do something with exit status of the local script
-+ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ if [ x$dhc_dbus != x ]; then
+ dbus-send --system --dest=com.redhat.dhcp \
+ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
+ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
@@ -32,7 +32,7 @@
. /etc/dhcp/dhclient-exit-hooks
fi
# probably should do something with exit status of the local script
-+ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ if [ x$dhc_dbus != x ]; then
+ dbus-send --system --dest=com.redhat.dhcp \
+ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
+ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
@@ -46,7 +46,7 @@
. /etc/dhcp/dhclient-exit-hooks
fi
# probably should do something with exit status of the local script
-+ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ if [ x$dhc_dbus != x ]; then
+ dbus-send --system --dest=com.redhat.dhcp \
+ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
+ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
@@ -60,7 +60,7 @@
. /etc/dhcp/dhclient-exit-hooks
fi
# probably should do something with exit status of the local script
-+ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ if [ x$dhc_dbus != x ]; then
+ dbus-send --system --dest=com.redhat.dhcp \
+ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
+ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
@@ -74,7 +74,7 @@
. /etc/dhcp/dhclient-exit-hooks
fi
# probably should do something with exit status of the local script
-+ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ if [ x$dhc_dbus != x ]; then
+ dbus-send --system --dest=com.redhat.dhcp \
+ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
+ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"