blob: af8c7d46c14c47a339f99c981c0b67def786b4e3 [file] [log] [blame]
#!/bin/sh
#
# Start read all files
#
REG_FAILURE_COUNT="0x104083FC"
clear_failure_count () {
devmem $REG_FAILURE_COUNT 32 0
}
case "$1" in
start)
(
nice -n 19 readallfiles -q / &&
clear_failure_count
) 2>&1 | logos readall &
;;
stop)
pkillwait -x readallfiles
;;
restart|reload)
$0 stop; $0 start
;;
*)
echo "Usage: $0 {start|stop|restart}" >&2
exit 1
esac