From 6dec08933ecc9e6b7860c078bb5ebb234ef25481 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Oct 31 2014 10:47:20 +0000 Subject: dhclient-script: fix paths /[s]bin -> /usr/[s]bin --- diff --git a/dhclient-script b/dhclient-script index fbf1032..b081806 100644 --- a/dhclient-script +++ b/dhclient-script @@ -44,9 +44,9 @@ logmessage() { logger -p ${LOGFACILITY}.${LOGLEVEL} -t "NET" "dhclient: ${msg}" } -if [ -x /sbin/restorecon ]; then +if [ -x /usr/sbin/restorecon ]; then fix_context() { - /sbin/restorecon ${1} >/dev/null 2>&1 + /usr/sbin/restorecon ${1} >/dev/null 2>&1 } else fix_context() { :; } @@ -65,9 +65,9 @@ eventually_add_hostnames_domain_to_search() { if need_hostname; then status=1 if [ -n "${new_ip_address}" ]; then - eval $(/bin/ipcalc --silent --hostname ${new_ip_address} ; echo "status=$?") + eval $(/usr/bin/ipcalc --silent --hostname ${new_ip_address} ; echo "status=$?") elif [ -n "${new_ip6_address}" ]; then - eval $(/bin/ipcalc --silent --hostname ${new_ip6_address} ; echo "status=$?") + eval $(/usr/bin/ipcalc --silent --hostname ${new_ip6_address} ; echo "status=$?") fi if [ ${status} -eq 0 ]; then