Merge pull request #72 from MartijnBraam/feature/70-change-default-ip-and-subnet-for-telnetd

Changed telnetd ip in boot process to 172.16.42.1/24, see issue #70
Close #70.
This commit is contained in:
Oliver Smith 2017-06-09 15:38:21 +00:00 committed by GitHub
commit 69b558e45c
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
IP=192.168.2.15 IP=172.16.42.1
TELNET_PORT=24 TELNET_PORT=24
telnetd -b "${IP}:${TELNET_PORT}" -l /bin/sh telnetd -b "${IP}:${TELNET_PORT}" -l /bin/sh

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
IP=192.168.2.15 IP=172.16.42.1
TELNET_PORT=23 TELNET_PORT=23
usb_setup_android() { usb_setup_android() {
@ -23,8 +23,8 @@ dhcpcd_start()
# create /etc/udhcpd.conf # create /etc/udhcpd.conf
{ {
echo "start 192.168.2.20" echo "start 172.16.42.2"
echo "end 192.168.2.90" echo "end 172.16.42.254"
echo "lease_file /var/udhcpd.leases" echo "lease_file /var/udhcpd.leases"
echo "interface $INTERFACE" echo "interface $INTERFACE"
echo "option subnet 255.255.255.0" echo "option subnet 255.255.255.0"