Changeset 28836


Ignore:
Timestamp:
2011-11-07T23:58:39+01:00 (4 years ago)
Author:
nico
Message:

package/busybox: use new service wrapper

Location:
trunk/package/busybox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/busybox/Makefile

    r28794 r28836  
    1010PKG_NAME:=busybox 
    1111PKG_VERSION:=1.19.3 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313PKG_FLAGS:=essential 
    1414 
  • trunk/package/busybox/files/cron

    r25196 r28836  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 PATH="/bin:/sbin:/usr/bin:/usr/sbin" 
     6SERVICE_USE_PID=1 
    67 
    78start () { 
     
    1011        mkdir -p /var/spool/cron 
    1112        ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null 
    12         crond -c /etc/crontabs -l ${loglevel:-5} 
     13        service_start /usr/sbin/crond -c /etc/crontabs -l ${loglevel:-5} 
    1314} 
    1415 
    1516stop() { 
    16         killall -9 crond 
     17        service_stop /usr/sbin/crond 
    1718} 
  • trunk/package/busybox/files/telnet

    r25417 r28836  
    11#!/bin/sh /etc/rc.common 
    22# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
     
    2829           ( ! /etc/init.d/dropbear enabled 2> /dev/null && ! /etc/init.d/sshd enabled 2> /dev/null ); 
    2930        then 
    30                 telnetd -l /bin/login.sh 
     31                service_start /usr/sbin/telnetd -l /bin/login.sh 
    3132        fi 
    3233} 
    3334 
    3435stop() { 
    35         killall telnetd 2>/dev/null 
     36        service_stop /usr/sbin/telnetd 
    3637} 
    37  
Note: See TracChangeset for help on using the changeset viewer.