summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r--setup-interfaces.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index 07427a0..3a8a71f 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -441,6 +441,8 @@ iface_help() {
You will be asked which physical interface(s) to
be used for advanced configurations.
+ Select 'none' to leave configuration unmodified.
+
__EOF__
}
prompt_for_interfaces() {
@@ -458,6 +460,7 @@ prompt_for_interfaces() {
iface=$resp
case "$iface" in
+ "none") exit;;
"done") break;;
'?') iface_help; continue;;
br[0-9]*|bridge[0-9]*|virbr[0-9]*)
@@ -576,6 +579,10 @@ while getopts "abhip:r" opt; do
esac
done
+if [ "$1" = none ]; then
+ exit
+fi
+
mkdir -p $ROOT/etc/network
if [ "$STDINPUT" = "1" ]; then
cat > $ROOT/etc/network/interfaces