diff options
Diffstat (limited to 'rc.d/init.d/functions')
| -rw-r--r-- | rc.d/init.d/functions | 34 | 
1 files changed, 0 insertions, 34 deletions
| diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 3e8b5ae0..19f389dd 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -103,22 +103,6 @@ checkpid() {  	return 1  } -__readlink() { -    ls -bl "$@" 2>/dev/null| awk '{ print $NF }' -} - -__fgrep() { -    s=$1 -    f=$2 -    while read line; do -	if strstr "$line" "$s"; then -	    echo $line -	    return 0 -	fi -    done < $f -    return 1 -} -  # __proc_pids {program} [pidfile]  # Set $pid to pids from /var/run* for {program}.  $pid should be declared  # local in the caller. @@ -534,24 +518,6 @@ strstr() {    return 0  } -# Confirm whether we really want to run this service -confirm() { -  [ -x /bin/plymouth ] && /bin/plymouth --hide-splash -  while : ; do  -      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] " -      read answer -      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then -         return 0 -      elif strstr $"cC" "$answer" ; then -	 rm -f /var/run/confirm -	 [ -x /bin/plymouth ] && /bin/plymouth --show-splash -         return 2 -      elif strstr $"nN" "$answer" ; then -         return 1 -      fi -  done -} -  # Check whether file $1 is a backup or rpm-generated file and should be ignored  is_ignored_file() {      case "$1" in | 
