2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/platform/kobo/release-ip.sh

9 lines
231 B
Bash
Raw Normal View History

#!/bin/sh
# PATH export is only needed if you run this script manually from a shell
export PATH="${PATH}:/sbin"
# Release IP and shutdown udhcpc.
pkill -9 -f '/bin/sh /etc/udhcpc.d/default.script'
ifconfig "${INTERFACE}" 0.0.0.0