meshenger/lazyinstall/lazyinstall2.sh

35 lines
797 B
Bash
Raw Normal View History

2014-04-24 10:58:10 +02:00
#!/bin/ash
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
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
sleep 1
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
opkg install python git
2014-04-24 11:37:39 +02:00
sleep 1
git clone git://github.com/jngrt/meshenger.git
2014-04-24 11:37:39 +02:00
mv uhttpd /etc/config/uhttpd
echo 'my ip address is:' #klopt nog niet
ifconfig br-lan | grep 'inet addr'
2014-04-24 11:37:39 +02:00
echo 'Done configuring you can now reboot using $reboot -f'