homeserver-iac/roles/networking/connection/templates/rmconn.sh
2024-01-02 21:03:31 -05:00

9 lines
308 B
Bash

#!/bin/sh
sleep 30
/usr/bin/nmcli connection down {{ net_interface }} > /dev/null 2>&1
/usr/bin/nmcli connection down "Wired connection 1" > /dev/null 2>&1
/usr/bin/nmcli connection down {{ conn_name }} > /dev/null 2>&1
/usr/bin/nmcli connection up {{ conn_name }} > /dev/null