Changeset 38142


Ignore:
Timestamp:
2013-09-23T23:58:36+02:00 (4 years ago)
Author:
luka
Message:

[package] fix various init scripts

Changes include:

  • removing unused variables
  • replacing spaces with tabs where appropriate
  • more consistency with variable declarations

Signed-off-by: Luka Perkov <luka@…>

Location:
trunk/package
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/dnsmasq/files/dnsmasq.init

    r38023 r38142  
    7676 
    7777append_bogusnxdomain() { 
    78     xappend "--bogus-nxdomain=$1" 
     78        xappend "--bogus-nxdomain=$1" 
    7979} 
    8080 
  • trunk/package/network/services/dropbear/files/dropbear.init

    r38023 r38142  
    77 
    88USE_PROCD=1 
    9  
     9PROG=/usr/sbin/dropbear 
    1010NAME=dropbear 
    11 PROG=/usr/sbin/dropbear 
    1211PIDCOUNT=0 
    1312EXTRA_COMMANDS="killclients" 
  • trunk/package/network/services/relayd/files/relay.init

    r38023 r38142  
    11#!/bin/sh /etc/rc.common 
    22# Copyright (c) 2011-2012 OpenWrt.org 
     3 
    34START=80 
    45 
     
    4142        } 
    4243 
    43         procd_open_instance 
    44         procd_set_param command "$PROG" 
     44        procd_open_instance 
     45        procd_set_param command "$PROG" 
    4546 
    4647        local net networks 
     
    8485        local fwd_dhcp # = 1 
    8586        config_get_bool fwd_dhcp "$cfg" forward_dhcp 1 
    86         [ $fwd_dhcp -eq 1 ] && procd_append_param command"-D" 
     87        [ $fwd_dhcp -eq 1 ] && procd_append_param command "-D" 
    8788 
    8889        procd_close_instance 
  • trunk/package/system/procd/files/log.init

    r38023 r38142  
    77 
    88USE_PROCD=1 
    9 NAME=logread 
    109PROG=/sbin/logread 
    1110 
     
    1615 
    1716        config_get log_file $1 log_file 
    18         config_get log_size $1 log_size 
     17        config_get log_size $1 log_size 
    1918 
    2019        [ -z "${log_file}" ] && return 
     
    2221        procd_open_instance 
    2322        procd_set_param command "$PROG" -f -F "$log_file" -p "$pid_file" 
    24         [ -n "${log_size}" ] && procd_append_param command -S "$log_size" 
     23        [ -n "${log_size}" ] && procd_append_param command -S "$log_size" 
    2524        procd_close_instance 
    2625} 
     
    3938        procd_open_instance 
    4039        procd_set_param command "$PROG" -f -r "$log_ip" "${log_port:-514}" -p "$pid_file" 
    41         [ "${log_proto}" != "udp" ] || procd_append_param command -u 
     40        [ "${log_proto}" != "udp" ] || procd_append_param command -u 
    4241        procd_close_instance 
    4342} 
  • trunk/package/utils/busybox/files/cron

    r37243 r38142  
    66USE_PROCD=1 
    77PROG=/usr/sbin/crond 
    8 NAME=crond 
    98 
    109start_service () { 
  • trunk/package/utils/busybox/files/sysntpd

    r38023 r38142  
    66USE_PROCD=1 
    77PROG=/usr/sbin/ntpd 
    8 SERVICE_PID_FILE=/var/run/sysntpd.pid 
    98 
    109start_service() { 
     
    2120        procd_open_instance 
    2221        procd_set_param command "$PROG" -n 
    23         [ $enable_server -ne 0 ] && procd_append_param command -l 
     22        [ $enable_server -ne 0 ] && procd_append_param command -l 
    2423        [ -n "$peers" ] && { 
    2524                local peer 
  • trunk/package/utils/busybox/files/telnet

    r37242 r38142  
    33 
    44START=50 
     5 
    56USE_PROCD=1 
    67PROG=/usr/sbin/telnetd 
    7 NAME=telnetd 
    88 
    99has_root_pwd() { 
     
    3232           ( ! /etc/init.d/dropbear enabled 2> /dev/null && ! /etc/init.d/sshd enabled 2> /dev/null ); 
    3333        then 
    34                 procd_open_instance 
    35                 procd_set_param command "$PROG" -F -l /bin/login.sh 
     34                procd_open_instance 
     35                procd_set_param command "$PROG" -F -l /bin/login.sh 
    3636                procd_close_instance 
    3737        fi 
Note: See TracChangeset for help on using the changeset viewer.