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:
parent
dc49ee313f
commit
5bd93e7ff8
@ -87,7 +87,7 @@ config_rootfs() {
|
|||||||
install_packages() {
|
install_packages() {
|
||||||
cp src/linux-okreader-modules_2.6.35.3-1_armhf.deb rootfs/
|
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/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/
|
cp src/kobo_hwconfig/kobo-hwconfig_1.0-1_armhf.deb rootfs/
|
||||||
|
|
||||||
chroot rootfs/ bash -c "dpkg -i /*.deb"
|
chroot rootfs/ bash -c "dpkg -i /*.deb"
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
# Disable wifi, and remove all modules.
|
# Disable wifi, and remove all modules.
|
||||||
|
|
||||||
killall dhcpcd default.script wpa_supplicant 2>/dev/null
|
pkill dhcpcd
|
||||||
|
pkill wpa_supplicant
|
||||||
|
|
||||||
ifconfig wlan0 down
|
ifconfig wlan0 down
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
pkill -9 -f 'dhcpcd'
|
pkill 'dhcpcd'
|
||||||
|
ifconfig wlan0 0.0.0.0
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Package: koreader
|
Package: koreader
|
||||||
Version: 2017.03-2
|
Version: 2017.03-3
|
||||||
Maintainer: Cosmin Gorgovan <okreader@linux-geek.org>
|
Maintainer: Cosmin Gorgovan <okreader@linux-geek.org>
|
||||||
Architecture: armhf
|
Architecture: armhf
|
||||||
Description: An ebook viewer application.
|
Description: An ebook viewer application.
|
||||||
|
Loading…
Reference in New Issue
Block a user