[openwrt/openwrt] base-files: gpio_switch: start before boot state done is set

LEDE Commits lede-commits at lists.infradead.org
Tue Jan 9 13:10:01 PST 2018


mkresin pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/ff874b656beb87e3ad0f2cba3f325b1bf51a6b90

commit ff874b656beb87e3ad0f2cba3f325b1bf51a6b90
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Thu Dec 21 09:44:53 2017 +0100

    base-files: gpio_switch: start before boot state done is set
    
    Start gpio_switch before the boot state is set to up/initialised/done.
    This way the exported GPIOs are available at the time rc.local is started.
    
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 package/base-files/files/etc/init.d/gpio_switch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/base-files/files/etc/init.d/gpio_switch b/package/base-files/files/etc/init.d/gpio_switch
index 1f1b44b..5a62be9 100755
--- a/package/base-files/files/etc/init.d/gpio_switch
+++ b/package/base-files/files/etc/init.d/gpio_switch
@@ -1,7 +1,7 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2015 OpenWrt.org
 
-START=98
+START=94
 STOP=10
 USE_PROCD=1
 



More information about the lede-commits mailing list