dhclient-script: fix paths /[s]bin -> /usr/[s]bin
This commit is contained in:
		
							parent
							
								
									8d4540569e
								
							
						
					
					
						commit
						6dec08933e
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user