Commit 1bd3d4ec authored by Christian Hesse's avatar Christian Hesse 😜 Committed by Gerardo Exequiel 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: Christian Hesse's avatarChristian Hesse <>
parent 63c62911
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment