Changeset 37242


Ignore:
Timestamp:
2013-07-11T19:00:26+02:00 (5 years ago)
Author:
blogic
Message:

busybox: convert telnet init script to procd

Signed-off-by: John Crispin <blogic@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/utils/busybox/files/telnet

    r37007 r37242  
    33 
    44START=50 
     5USE_PROCD=1 
     6PROG=/usr/sbin/telnetd 
     7NAME=telnetd 
    58 
    69has_root_pwd() { 
     
    2427} 
    2528 
    26 start() { 
     29start_service() { 
    2730        if ( ! has_ssh_pubkey && \ 
    2831             ! has_root_pwd /etc/passwd && ! has_root_pwd /etc/shadow ) || \ 
    2932           ( ! /etc/init.d/dropbear enabled 2> /dev/null && ! /etc/init.d/sshd enabled 2> /dev/null ); 
    3033        then 
    31                 service_start /usr/sbin/telnetd -l /bin/login.sh 
     34                procd_open_instance 
     35                procd_set_param command "$PROG" -F -l /bin/login.sh 
     36                procd_close_instance 
    3237        fi 
    3338} 
    34  
    35 stop() { 
    36         service_stop /usr/sbin/telnetd 
    37 } 
Note: See TracChangeset for help on using the changeset viewer.