#! /bin/bash
# 由于直接编入内核,所以默认不是 AP 模式,需要先 destory
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode ap &>/dev/null
iwconfig ath0 essid "platinum.cublog.cn" key "s:bchyi" channel 11 rate 54M auto
ifconfig ath0 192.168.39.254 netmask 255.255.255.0
killall -9 dhcpd &>/dev/null
service dhcpd start
ifconfig eth0 192.168.1.254
阅读(5543) | 评论(0) | 转发(0) |