Skip to content
Snippets Groups Projects
Commit af9640c7 authored by Christian Hesse's avatar Christian Hesse :stuck_out_tongue_winking_eye: Committed by Gerardo Pozzi
Browse files

use ip syntax according to ip-address(8)


According to ip-address(8) flushing an interface requires the
keyword 'dev'.
Also add proper quoting.

Signed-off-by: default avatarChristian Hesse <mail@eworm.de>
parent 094f5b9d
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,8 @@ run_latehook () {
[[ -z "${copy_resolvconf}" ]] && copy_resolvconf="y"
if [[ "${copytoram}" == "y" ]]; then
ip addr flush ${bootif_dev}
ip link set ${bootif_dev} down
ip addr flush dev "${bootif_dev}"
ip link set "${bootif_dev}" down
elif [[ "${copy_resolvconf}" != "n" && -f /etc/resolv.conf ]]; then
cp /etc/resolv.conf /new_root/etc/resolv.conf
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment