Skip to content

Commit

Permalink
fixed last modification to set-ip-secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
VectorCell committed Aug 9, 2020
1 parent 5fee019 commit ebbc590
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/set-ip-secondary
Expand Up @@ -32,8 +32,13 @@ function set_ip_addr {
if [ -n "$1" ]; then
echo "Calling with arguments: $@"
echo "Assuming this means to clear the configuration(s)..."
remove_ip_addr enp4s0f0
remove_ip_addr enp4s0f1
DEVICE=enp4s0f0
CURRENT_IP=$(current_ip_addr $DEVICE)
remove_ip_addr $CURRENT_IP $DEVICE
DEVICE=enp4s0f1
CURRENT_IP=$(current_ip_addr $DEVICE)
remove_ip_addr $CURRENT_IP $DEVICE
exit
fi

if [ "green" == "$HOSTNAME" ]; then
Expand Down

0 comments on commit ebbc590

Please sign in to comment.