diff options
author | Marvin Borner | 2022-05-31 14:17:19 +0200 |
---|---|---|
committer | Marvin Borner | 2022-05-31 14:17:19 +0200 |
commit | b8be82d9113dd0fec9021aa573039cc64dbd849a (patch) | |
tree | 0694d21e5ba03e843dc6f03d1c5b1ed033123875 /.scripts/wlan | |
parent | 272cc6e941d798d7270fcf74a98f592ef06e14ac (diff) |
Clean
Diffstat (limited to '.scripts/wlan')
-rwxr-xr-x | .scripts/wlan | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/.scripts/wlan b/.scripts/wlan deleted file mode 100755 index 0df4aea..0000000 --- a/.scripts/wlan +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash -# Melvin's awesome wifi connection script! - -netctl list | grep -q "$1" || { - echo "This network doesn't exist. Please use 'sudo wifi-menu' to add a new network or use one of the following:" - netctl list - exit 1 -} - -sudo netctl stop-all -sudo killall -9 dhcpcd -sudo systemctl start dhcpcd || exit 1 -sudo ip link set wlp3s0 down -sudo netctl start "$1" || exit 1 - -echo "Connecting..." -while ! ping -c1 1.1.1.1 &>/dev/null; do sleep 1; done -echo "Connected!" |