From 5869505d64c04c536bdcd71a197ade918c36bf1c Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Sun, 10 Aug 2014 11:19:38 +0100 Subject: init --- net-profile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 net-profile (limited to 'net-profile') diff --git a/net-profile b/net-profile new file mode 100755 index 0000000..3234f8c --- /dev/null +++ b/net-profile @@ -0,0 +1,14 @@ +#!/bin/sh + + +setup_wifi() +{ + sudo wpa_supplicant -D wext -i wlan0 -c ~/.net_profiles/$1.conf &>/dev/null & + sudo /etc/init.d/dhcpcd start + sleep 30 + sudo rc-config start ntp-client +} + +setup_wifi $1 + + -- cgit v1.2.3