Changeset 28917


Ignore:
Timestamp:
2011-11-10T00:43:45+01:00 (6 years ago)
Author:
nico
Message:

packages/rng-tools: use new service functions

Location:
packages/utils/rng-tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/rng-tools/Makefile

    r28332 r28917  
     1# 
     2# Copyright (C) 2011 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7 
    18include $(TOPDIR)/rules.mk 
    29 
    310PKG_NAME:=rng-tools 
    411PKG_VERSION:=3 
    5 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    613 
    714PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/utils/rng-tools/files/rngd.init

    r28332 r28917  
    11#!/bin/sh /etc/rc.common 
     2# Copyright (C) 2011 OpenWrt.org 
     3 
    24START=98 
    35 
    46RNGD_INTERVAL=30 
    57RNGD_AMOUNT=4000 
    6 RNGD_DEVICE=/dev/urandom 
     8RNGD_DEVICE="/dev/urandom" 
    79 
    810start() { 
    9     rngd -r $RNGD_DEVICE -W $RNGD_AMOUNT -t $RNGD_INTERVAL 
     11        service_start /sbin/rngd -r $RNGD_DEVICE -W $RNGD_AMOUNT -t $RNGD_INTERVAL 
    1012} 
    1113 
    1214stop() { 
    13     killall rngd 
     15        service_stop /sbin/rngd 
    1416} 
Note: See TracChangeset for help on using the changeset viewer.