uci set network.lan.ipaddr=192.168.2.1;
uci commit;
/etc/init.d/network restart
uci add firewall rule
uci set firewall.@rule[-1].name='Allow-WEB-wan'
| #!/bin/sh | |
| # BACKUP SCRIPT | |
| CONTACT="[email protected]" | |
| MAIL="/tmp/mail" | |
| if [ -e "/var/lock/backup.lock" ] | |
| then | |
| echo " BACKUP ALREADY STARTED !!" > $MAIL |
| $ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data |