[oe-commits] Otavio Salvador : dhcp: fixes dhclient dbus support to properly propagate the exit status

GIT User account git at amethyst.openembedded.net
Tue Jan 13 14:39:33 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: ba1b9ec8f8c118ddf015d2ff2faaac098c2693b7
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ba1b9ec8f8c118ddf015d2ff2faaac098c2693b7

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Tue Jan 13 12:31:30 2009 -0200

dhcp: fixes dhclient dbus support to properly propagate the exit status

---

 packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch |   12 ++++++------
 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 579d72f..f470d64 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)\='`"





More information about the Openembedded-commits mailing list