2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00
koreader/platform/cervantes/obtain-ip.sh

9 lines
165 B
Bash
Executable File

#!/bin/sh
./release-ip.sh
hostname=$(hostname -s)
# Use udhcpc to obtain IP.
udhcpc -S -i eth0 -s /etc/udhcpc/default.script -t15 -T10 -A3 -b -q -F "${hostname}"