diff options
author | Bill Nottingham <notting@redhat.com> | 2012-08-02 15:13:40 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2012-08-06 15:20:27 -0400 |
commit | 929b86328048d17f30f9be1ec2161b6486827e7f (patch) | |
tree | 099590b76aab26e90c5b3360deb220e1f8f99427 | |
parent | 654187448e2b29ee2b5c8b757a37420e1ce0257b (diff) | |
download | initscripts-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.
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | initscripts.spec | 4 | ||||
-rw-r--r-- | rc.d/init.d/functions | 34 | ||||
-rwxr-xr-x | rc.d/init.d/network | 10 |
4 files changed, 0 insertions, 56 deletions
@@ -56,14 +56,6 @@ install: chmod 755 $(ROOT)/etc/sysconfig/network-scripts/init* chmod 755 $(ROOT)/etc/NetworkManager/dispatcher.d/00-netreport mkdir -p $(ROOT)/etc/sysconfig/modules - mkdir -p $(ROOT)/etc/sysconfig/networking/devices - mkdir -p $(ROOT)/etc/sysconfig/networking/profiles/default - #mv $(ROOT)/etc/sysconfig/network-scripts/ifcfg-lo \ - # $(ROOT)/etc/sysconfig/networking/devices - #ln -s ../networking/devices/ifcfg-lo \ - # $(ROOT)/etc/sysconfig/network-scripts/ifcfg-lo - #ln -s ../networking/devices/ifcfg-lo \ - # $(ROOT)/etc/sysconfig/networking/profiles/default/ifcfg-lo mkdir -p $(ROOT)/etc/sysconfig/console if uname -m | grep -q s390 ; then \ install -m644 sysconfig/init.s390 $(ROOT)/etc/sysconfig/init ; \ diff --git a/initscripts.spec b/initscripts.spec index 39ccc868..6532edb3 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -123,10 +123,6 @@ rm -rf $RPM_BUILD_ROOT /sbin/ifup %dir /etc/sysconfig/console %dir /etc/sysconfig/modules -%dir /etc/sysconfig/networking -%dir /etc/sysconfig/networking/devices -%dir /etc/sysconfig/networking/profiles -%dir /etc/sysconfig/networking/profiles/default /etc/sysconfig/network-scripts/network-functions /etc/sysconfig/network-scripts/network-functions-ipv6 /etc/sysconfig/network-scripts/init.ipv6-global 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 diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 359dffa2..9a6517a3 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -130,11 +130,6 @@ case "$1" in is_available $i continue fi - # If we're in confirmation mode, get user confirmation. - if [ -f /var/run/confirm ]; then - confirm $i - test $? = 1 && continue - fi action $"Bringing up interface $i: " ./ifup $i boot [ $? -ne 0 ] && rc=1 done @@ -142,11 +137,6 @@ case "$1" in # Bring up xDSL and VPN interfaces for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces $vpninterfaces ; do if ! LANG=C grep -EL "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then - # If we're in confirmation mode, get user confirmation. - if [ -f /var/run/confirm ]; then - confirm $i - test $? = 1 && continue - fi action $"Bringing up interface $i: " ./ifup $i boot [ $? -ne 0 ] && rc=1 fi |