aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-08-02 15:13:40 -0400
committerBill Nottingham <notting@redhat.com>2012-08-06 15:20:27 -0400
commit929b86328048d17f30f9be1ec2161b6486827e7f (patch)
tree099590b76aab26e90c5b3360deb220e1f8f99427 /rc.d/init.d/functions
parent654187448e2b29ee2b5c8b757a37420e1ce0257b (diff)
downloadinitscripts-929b86328048d17f30f9be1ec2161b6486827e7f.tar
initscripts-929b86328048d17f30f9be1ec2161b6486827e7f.tar.gz
initscripts-929b86328048d17f30f9be1ec2161b6486827e7f.tar.bz2
initscripts-929b86328048d17f30f9be1ec2161b6486827e7f.tar.xz
initscripts-929b86328048d17f30f9be1ec2161b6486827e7f.zip
Drop more unused functions, and drop old s-c-n profile support directories.
The profile support itself was removed a while ago.
Diffstat (limited to 'rc.d/init.d/functions')
-rw-r--r--rc.d/init.d/functions34
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