meshenger/lazyinstall
2015-04-15 15:44:24 +02:00
..
dhcp updated lazyinstall, now includes hotspot, captive portal and init script 2014-05-28 21:25:36 +02:00
firewall updated lazyinstall, now includes hotspot, captive portal and init script 2014-05-28 21:25:36 +02:00
fstab added a lazyinstall script for dev purposes 2014-04-21 10:51:26 +02:00
fstab_extroot reverted to previous fstab_extroot solution 2015-04-15 15:44:24 +02:00
lazyinstall1.sh expanded readme and cleaned scripts 2015-04-15 15:05:41 +02:00
lazyinstall2.sh reverted to previous fstab_extroot solution 2015-04-15 15:44:24 +02:00
meshenger fixed init script 2014-05-28 23:35:01 +02:00
network updated lazyinstall, now includes hotspot, captive portal and init script 2014-05-28 21:25:36 +02:00
README.md expanded readme and cleaned scripts 2015-04-15 15:05:41 +02:00
uhttpd lazyinstall now configures uhttpd 2014-04-24 11:37:39 +02:00
wireless added information for how lazyinstall works 2015-04-15 13:50:14 +02:00

This is a very primitive script to automate the openwrt setup. It's probably best not used at this point.

However if you choose to use it make sure you have the following things set up:

  • The OpenWRT router has a connection to the internet (by attaching it to another router via ethernet)
  • You have a properly formatted usb drive (one ext4 partition, one 32mb swap partiton)
  • Make sure the usb flash drive is inserted in the router

The lazy install scripts works by moving config files from this folder to replace the ones on the target router's filesystem. Therefore you need to edit the following files to suit your own needs:

network file: lines 11 and 13, the ip adress you want to use plus the ip adress of the gateway that provides this router with its internet connection.

wireless file: line 11,the wireless SSID that the router will get

Once you've set all of this up copy the lazyinstall directory to your open-wrt router:

scp -r /path/to/meshenger/lazyinstall/ root@target.router.ip.adress:~/

ssh into the target router:

ssh root@target.router.ip.address

navigate to where you copied the lazyinstall directory: cd ~/lazyinstall

first execute lazyinstall1, it will set up the ext_root on ths usb drive

./lazyinstall1.sh

once that's done reboot the router:

reboot -f

once it is up again, ssh back in. the router has now booted from the external usb drive. you can verify that by doing:

df -h

which should show you that rootfs is the size of your external usb drive

run lazyinstall2. this will copy all the config files, download python and git and clone the meshenger project. This can take a while.

After this is done you can reboot and you will have a fully functioning meshenger node!