Fixes for the disable-wifi and release-ip scripts

disable-wifi: use pkill instead of killall, which is unavailable
release-ip: reset the ip address of the interface
This commit is contained in:
Cosmin Gorgovan 2017-03-27 00:25:37 +01:00
parent dc49ee313f
commit 5bd93e7ff8
4 changed files with 6 additions and 4 deletions

View File

@ -87,7 +87,7 @@ config_rootfs() {
install_packages() {
cp src/linux-okreader-modules_2.6.35.3-1_armhf.deb rootfs/
cp src/firmware-okreader_1.0-1_armhf.deb rootfs/
cp src/koreader_2017.03-2_armhf.deb rootfs/
cp src/koreader_2017.03-3_armhf.deb rootfs/
cp src/kobo_hwconfig/kobo-hwconfig_1.0-1_armhf.deb rootfs/
chroot rootfs/ bash -c "dpkg -i /*.deb"

View File

@ -2,7 +2,8 @@
# Disable wifi, and remove all modules.
killall dhcpcd default.script wpa_supplicant 2>/dev/null
pkill dhcpcd
pkill wpa_supplicant
ifconfig wlan0 down

View File

@ -1,3 +1,4 @@
#!/bin/sh
pkill -9 -f 'dhcpcd'
pkill 'dhcpcd'
ifconfig wlan0 0.0.0.0

View File

@ -1,5 +1,5 @@
Package: koreader
Version: 2017.03-2
Version: 2017.03-3
Maintainer: Cosmin Gorgovan <okreader@linux-geek.org>
Architecture: armhf
Description: An ebook viewer application.