rcS abgespeckt. Es darf NUR noch die /etc/initd/rcS.d/* scripten ausführen. alles andere

wird durch upstart scripten erledigt



git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5609 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-05-01 11:44:59 +00:00
parent fa755a5185
commit c21e8cebe7

View File

@ -40,56 +40,6 @@ trap ":" INT QUIT TSTP
source /etc/init.d/functions
mount -t proc none /proc
if mount|grep /dev/root|grep nfs &>/dev/null; then
echo -n "Mounting tmpfs on /var"
mount -t tmpfs none /var
evaluate_retval
echo -n "Getting Hostname ..."
ifconfig|\
grep Protokoll|\
awk '{ if ( $2 == "Protokoll:Ethernet" ) print $1 }' >/var/devices
for i in `cat /var/devices`; do
INET=`ifconfig $i|\
grep inet|\
awk -F ":" '{print $2}'|\
awk '{print $1}'`
ANET=`echo $INET|awk -F "." '{print $1}'`
if [ ! "$ANET" == "127" ]; then
HOSTNAME=`getent hosts $INET`
HOSTNAME=`echo $HOSTNAME|\
awk '{print $2}'|\
awk -F "." '{print $1}'`
break
fi
done
echo -n " $HOSTNAME"
evaluate_retval
echo -n "Restoring var folder"
cd /var
tar -zxf /boot/var_${HOSTNAME}.tgz
echo $HOSTNAME >etc/sysconfig/nodename
cd -
evaluate_retval
else
mount -t tmpfs none /var/lock
fi
umount /proc
if [ -f /sbin/udevd ]; then
echo -n "Mounting /sys"
mount -t sysfs none /sys
evaluate_retval
if [ ! -d /var/lock/subsys ]; then
mkdir /var/lock/subsys
fi
if [ ! -d /dev ]; then
mkdir /dev
fi
fi
for i in /etc/init.d/rcS.d/S??*
do
[ ! -f "$i" ] && continue;