Skip to content

Commit

Permalink
Activate the specified network interface, before applying IP stack
Browse files Browse the repository at this point in the history
This will prevent erroring out as some devices are not up by default.
  • Loading branch information
igorpecovnik committed Feb 4, 2025
1 parent ff5cfc3 commit 6252222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/modules/network/module_network_simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ function module_simple_network() {
$((${#list[@]}/2 + 10 )) 50 $((${#list[@]}/2 + 1)) "${list[@]}" 3>&1 1>&2 2>&3)
if [[ $? -eq 0 ]]; then
if $DIALOG --title "Action for ${adapter}" --yes-button "Configure" --no-button "Drop" --yesno "$1" 5 60; then
:
ip link set ${adapter} up
else
sed -i -e 'H;x;/^\( *\)\n\1/{s/\n.*//;x;d;}' \
-e 's/.*//;x;/'${adapter}'/{s/^\( *\).*/ \1/;x;d;}' /etc/netplan/${yamlfile}.yaml
Expand Down

0 comments on commit 6252222

Please sign in to comment.