#!/bin/bash -
#===============================================================================
#
# FILE: wifi.sh
#
# USAGE: ./wifi.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: YOUR NAME (),
# ORGANIZATION:
# CREATED: 2014年09月12日 18:38
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get remove hostapd
cd /tmp
wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd
sudo apt-get install ap-hotspot
sudo ap-hotspot configure
sudo ufw disable
sudo rm /tmp/hotspot.pid
sudo ap-hotspot start
#===============================================================================
#
# FILE: wifi.sh
#
# USAGE: ./wifi.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: YOUR NAME (),
# ORGANIZATION:
# CREATED: 2014年09月12日 18:38
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get remove hostapd
cd /tmp
wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd
sudo apt-get install ap-hotspot
sudo ap-hotspot configure
sudo ufw disable
sudo rm /tmp/hotspot.pid
sudo ap-hotspot start