base-files: gpio_switch: start before boot state done is set
authorMathias Kresin <dev@kresin.me>
Thu, 21 Dec 2017 08:44:53 +0000 (09:44 +0100)
committerMathias Kresin <dev@kresin.me>
Tue, 9 Jan 2018 21:05:46 +0000 (22:05 +0100)
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@kresin.me>
package/base-files/files/etc/init.d/gpio_switch

index 1f1b44b2129ce2315943f6a10508eefb66412c48..5a62be94ccbe76d17e5f1c8e852b200cded3c4ee 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2015 OpenWrt.org
 
-START=98
+START=94
 STOP=10
 USE_PROCD=1