summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2005-09-03 18:17:43 +0000
committerChristian Heim <phreak@gentoo.org>2005-09-03 18:17:43 +0000
commit7b89ef58fde34270558ea6115811099c6d676871 (patch)
tree625c26dad5fe00bdb587928d66ab380a6eaa1245
parentAdding our dummy init-script (diff)
downloadbaselayout-vserver-7b89ef58fde34270558ea6115811099c6d676871.tar.gz
baselayout-vserver-7b89ef58fde34270558ea6115811099c6d676871.tar.bz2
baselayout-vserver-7b89ef58fde34270558ea6115811099c6d676871.zip
Delete (now) invalid depends of the init-scripts
svn path=/baselayout-vserver/trunk/; revision=14
-rwxr-xr-xinit.d/bootmisc16
-rwxr-xr-xinit.d/domainname2
-rwxr-xr-xinit.d/hostname4
-rwxr-xr-xinit.d/rmnologin4
4 files changed, 2 insertions, 24 deletions
diff --git a/init.d/bootmisc b/init.d/bootmisc
index ad7637f..1f84e9d 100755
--- a/init.d/bootmisc
+++ b/init.d/bootmisc
@@ -3,8 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
depend() {
- use clock hostname
- need localmount
+ use hostname
before logger
}
@@ -41,12 +40,6 @@ start() {
# Take care of random stuff [ /var/lock | /var/run | pam ]
#
- if [[ -d /var/lib/net-scripts/state ]] ; then
- ebegin "Cleaning /var/lib/net-scripts/state"
- rm -rf /var/lib/net-scripts/state/*
- eend 0
- fi
-
ebegin "Cleaning /var/lock, /var/run"
rm -rf /var/run/console.lock /var/run/console/*
@@ -125,13 +118,6 @@ start() {
fi
#
- # Create an 'after-boot' dmesg log
- #
- touch /var/log/dmesg
- chmod 640 /var/log/dmesg
- dmesg > /var/log/dmesg
-
- #
# Check for /etc/resolv.conf, and create if missing
#
[[ -f /etc/resolv.conf ]] || touch /etc/resolv.conf &> /dev/null
diff --git a/init.d/domainname b/init.d/domainname
index aa5fbc7..07bd4f7 100755
--- a/init.d/domainname
+++ b/init.d/domainname
@@ -3,7 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
depend() {
- need checkroot hostname
+ need hostname
before bootmisc
}
diff --git a/init.d/hostname b/init.d/hostname
index 7d10dd8..8efdf96 100755
--- a/init.d/hostname
+++ b/init.d/hostname
@@ -2,10 +2,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-depend() {
- need checkroot
-}
-
start() {
local myhost=$(/bin/hostname 2>/dev/null)
local retval=0
diff --git a/init.d/rmnologin b/init.d/rmnologin
index 559b660..436fec3 100755
--- a/init.d/rmnologin
+++ b/init.d/rmnologin
@@ -2,10 +2,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-depend() {
- need localmount
-}
-
start() {
if [[ -f /etc/nologin.boot ]] ; then
rm -f /etc/nologin /etc/nologin.boot &> /dev/null