ramips: move /lib/ramips.sh include in /etc/init.d/bootcount into start()

Enabling the init script offline will print an error otherwise.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
v19.07.3_mercusys_ac12_duma
Matthias Schiffer 8 years ago
parent b3dd642584
commit 175fbe4d4e
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

@ -1,9 +1,10 @@
#!/bin/sh /etc/rc.common
. /lib/ramips.sh
START=99
start() {
. /lib/ramips.sh
local board=$(ramips_board_name)
if [ $board = "sk-wb8" ]; then
fw_setenv bootcount 0

Loading…
Cancel
Save