Changes between Version 59 and Version 60 of WikiStart


Ignore:
Timestamp:
May 16, 2013, 6:20:16 PM (12 years ago)
Author:
walter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v59 v60  
    112112
    113113## use scp to upload all packages for install
    114 scp -r packages root@192.168.1.20:/tmp/
     114#type yes/enter password
     115scp -r packages root@192.168.1.1:/tmp/
    115116
    116117## use ssh to uninstall wpad and install other packages
    117 ssh root@192.168.1.20 "opkg remove wpad-mini;install /tmp/packages/*.ipk;exit"
     118ssh root@192.168.1.1 "opkg remove wpad-mini;opkg install /tmp/packages/*.ipk;exit"
    118119
    119120## use scp to backup current config files to local pc for use as template
    120121mkdir backup
    121 scp -r root@192.168.1.20:/etc backup/
     122scp -r root@192.168.1.1:/etc backup/
    122123}}}
    123124
     
    139140cp backup/etc/config/wireless customize/etc/config/
    140141
    141 cp backup/etc/init.d/openvpn customize/etc/config/
    142 cp backup/etc/init.d/sysntpd customize/etc/config/
    143 
    144 cp backup/etc/firewall.user customize/etc/config/
    145 cp backup/etc/inittab customize/etc/config/
    146 cp backup/etc/rc.local customize/etc/config/
    147 
    148 touch customize/etc/sbin/wifi-update
     142cp backup/etc/init.d/openvpn customize/etc/init.d/
     143cp backup/etc/init.d/sysntpd customize/etc/init.d/
     144
     145cp backup/etc/firewall.user customize/etc/
     146cp backup/etc/inittab customize/etc/
     147cp backup/etc/rc.local customize/etc/
     148
     149touch customize/sbin/wifi-update
    149150touch customize/usr/sbin/iopenvpn
    150151
     
    387388        option channel  5 #! Unique channels must be set since multiple AP's at one site differs 1,6,11! <---
    388389        option macaddr  MACADDRESS # this will be set by another script, leave it alone!!! <---
    389         option hwmode   11bg #when using 5ghz vs 2,4ghz '11na' must be set! <---
     390        option hwmode   11ng #when using 5ghz vs 2,4ghz '11na' must be set! <---
    390391        option htmode   HT20
    391392        list ht_capab   SHORT-GI-40
     
    552553tar -xf $nameofyour.tar
    553554cp keys/* customize/etc/openvpn/
    554 
    555 
     555}}}
     556
     557Fix file permissions!
     558{{{
     559chmod +x customize/usr/sbin/iopenvpn
     560
     561chmod +x customize/sbin/wifi-update
     562
     563chmod +x customize/etc/init.d/sysntpd
     564
     565chmod +x customize/etc/init.d/openvpn
     566
     567chmod +x customize/etc/openvpn/up.sh
     568
     569chmod +x customize/etc/rc.local
     570
     571chmod +x customize/etc/firewall.user
     572
     573chmod +x customize/etc/inittab
    556574}}}
    557575
     
    559577{{{
    560578## copy/install customized template to AP
    561 scp -r customize/ root@192.168.1.100:/
     579scp -r customize/* root@192.168.1.1:/
    562580
    563581## login