dotfiles

My showable dotfiles.
Log | Files | Refs | Submodules

commit fa0419f9142c9ce16807aced963159ed57fa48e3
parent 6bdafeb974f68658a276100d6c0aa19efc20f7bc
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Fri, 25 Oct 2019 10:46:48 -0400

Remove the net file

Diffstat:
Dopt/net | 36------------------------------------
1 file changed, 0 insertions(+), 36 deletions(-)

diff --git a/opt/net b/opt/net @@ -1,36 +0,0 @@ -#!/bin/sh - -wifi='iwn0' -eth='re0' - -case "$1" in - - scan) - doas ifconfig $wifi scan - ;; - - wifi) - doas ifconfig $eth -inet down - if [ -n "$2" ] && [ -n "$3" ]; then - doas ifconfig $wifi nwid "$2" wpa wpakey "$3" wpaprotos wpa1,wpa2 - fi - doas route -n flush - doas ifconfig $wifi up - doas dhclient $wifi - ;; - - eth) - doas ifconfig $wifi -inet down - doas route -n flush - doas ifconfig $eth up - doas dhclient $eth - ;; - - *) - echo 'usage: net scan' - echo ' | wifi' - echo ' | wifi <SSID> <password>' - echo ' | eth' - ;; - -esac