blob: cf22d207fa3c7da2189c6a4bfa7413541549486d [file] [log] [blame]
#!/bin/sh
case "$1" in
start)
logmark-once
GOOGLE_SSL_CRT=$(hnvram -qr GOOGLE_SSL_CRT)
[ -z "$GOOGLE_SSL_CRT" ] && echo "GOOGLE_SSL_CRT not set, skipping write to random pool" && exit 1
echo $GOOGLE_SSL_CRT >/dev/random
;;
stop)
;;
restart|reload)
$0 stop; $0 start ;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac