2014-04-24 10:58:10 +02:00
|
|
|
#!/bin/ash
|
2014-04-21 10:51:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
echo 'This is the meshenger lazy install part two!'
|
|
|
|
echo 'It presumes you already ran part 1!'
|
|
|
|
echo 'You should review the settings of "wireless" and "network"'
|
|
|
|
|
|
|
|
mkswap /dev/sda2
|
|
|
|
swapon /dev/sda2
|
|
|
|
|
|
|
|
mv fstab_extroot /etc/config/fstab
|
|
|
|
|
2014-05-28 21:25:36 +02:00
|
|
|
echo 'Configuring wireless and hotspot'
|
|
|
|
|
2014-04-21 10:51:26 +02:00
|
|
|
head -n 10 /etc/config/wireless >> tmp_wireless
|
|
|
|
cat wireless >> tmp_wireless
|
|
|
|
mv tmp_wireless /etc/config/wireless
|
2014-04-24 11:37:39 +02:00
|
|
|
|
2014-05-28 23:01:03 +02:00
|
|
|
cat firewall >>ls /etc/config/firewall
|
2014-05-28 21:25:36 +02:00
|
|
|
|
|
|
|
mv dhcp /etc/config/dhcp
|
|
|
|
|
|
|
|
echo "address=/#/192.168.2.1 " >> /etc/dnsmasq.conf
|
|
|
|
|
2014-04-24 11:37:39 +02:00
|
|
|
sleep 1
|
2014-04-21 10:51:26 +02:00
|
|
|
|
|
|
|
mv network /etc/config/network
|
|
|
|
opkg update
|
|
|
|
opkg install kmod-batman-adv kmod-ipv6
|
|
|
|
|
2014-04-24 11:37:39 +02:00
|
|
|
sed -i -e "s/option 'interfaces' 'mesh'/option 'interfaces' 'adhoc0'/g" /etc/config/batman-adv
|
2014-04-21 10:51:26 +02:00
|
|
|
|
|
|
|
opkg install python git
|
2014-04-24 11:37:39 +02:00
|
|
|
sleep 1
|
2014-11-05 18:00:07 +01:00
|
|
|
git clone ://github.com/rscmbbng/meshenger /root/meshenger
|
2014-04-21 10:51:26 +02:00
|
|
|
|
2014-04-24 11:37:39 +02:00
|
|
|
mv uhttpd /etc/config/uhttpd
|
|
|
|
|
2014-05-28 21:25:36 +02:00
|
|
|
mv meshenger /etc/init.d/meshenger
|
2014-11-05 20:11:33 +01:00
|
|
|
/etc/init.d/meshenger enable
|
2014-05-28 21:25:36 +02:00
|
|
|
|
2014-04-24 12:09:53 +02:00
|
|
|
echo 'my ip address is:' #klopt nog niet
|
2014-04-21 10:51:26 +02:00
|
|
|
ifconfig br-lan | grep 'inet addr'
|
|
|
|
|
2014-04-24 11:37:39 +02:00
|
|
|
echo 'Done configuring you can now reboot using $reboot -f'
|