#!/bin/sh /etc/rc.common # Copyright (C) 2007-2014 OpenWrt.org START=99 USE_PROCD=1 PROG=/usr/bin/weather-display NICEPRIO=3 start_service() { sleep 2 echo 1 > /sys/class/alphalcd/lcdi2c/clear printf '\x00\x00' > /sys/class/alphalcd/lcdi2c/position procd_open_instance procd_set_param command "$PROG" procd_set_param nice "$NICEPRIO" procd_set_param respawn ${respawn_threshold:-600} ${respawn_timeout:-5} ${respawn_retry:-5} procd_close_instance } reload_service() { stop start }