Add empty IFS for single var reads
This commit is contained in:
parent
134c479e36
commit
49d068aad3
6 changed files with 7 additions and 7 deletions
|
@ -23,7 +23,7 @@ renew_dhcp_if_needed() {
|
|||
iface=$1
|
||||
hostname_if=/etc/hostname."$iface"
|
||||
[ ! -r "$hostname_if" ] && return
|
||||
while read -r line; do
|
||||
while IFS= read -r line; do
|
||||
[ "$line" = dhcp ] && dhclient "$iface" && break
|
||||
done <"$hostname_if"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue