|
@@ -17,6 +17,6 @@ if ! grep -q "^unmanaged-devices.*$VIFMAC" $FILE ; then
|
|
sed -i 's/^unmanaged-devices.*$/&,'$VIFMAC/ $FILE
|
|
sed -i 's/^unmanaged-devices.*$/&,'$VIFMAC/ $FILE
|
|
fi
|
|
fi
|
|
if ! grep -q "^dns=" $FILE ; then
|
|
if ! grep -q "^dns=" $FILE ; then
|
|
- sed -i '/\[main\] a dns=default' $FILE
|
|
|
|
|
|
+ sed -i '/\[main\]/a dns=default' $FILE
|
|
fi
|
|
fi
|
|
exit 0
|
|
exit 0
|