haveged.init 283 B

12345678910111213141516
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2012 OpenWrt.org
  3. START=13
  4. HAVEGED_THRESHOLD=1024
  5. HAVEGED_DCACHE=32
  6. HAVEGED_ICACHE=32
  7. start() {
  8. service_start /usr/sbin/haveged -w $HAVEGED_THRESHOLD -d $HAVEGED_DCACHE -i $HAVEGED_ICACHE -v 1
  9. }
  10. stop() {
  11. service_stop /usr/sbin/haveged
  12. }