This commit was manufactured by cvs2svn to create tag
[opensuse:installation-images.git] / data / initrd / s390 / linuxrc.init
1 #!/bin/bash
2 echo "Setting up loopback..."
3 /sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
4 hostname suse
5
6 # Creating /var/log/boot.msg:
7 echo "Saving boot messages in /var/log/boot.msg"
8 /sbin/klogd -s -o -n -f /var/log/boot.msg
9
10 echo "Enabling system logging..."
11 /sbin/syslogd -m 720
12
13 /sbin/klogd -p -c 7
14
15 if [ -f /proc/sys/kernel/userprocess_debug ]; then
16         echo 1 > /proc/sys/kernel/userprocess_debug
17 fi
18
19 function do_SIGINT () {
20         exec /linuxrc
21 }
22 trap do_SIGINT SIGINT
23 rm -f /var/lock/* /var/lock/*/* /tmp/.X*lock \
24       /var/run/*  /var/run/*/*  /var/spool/uucp/LCK* 2>/dev/null
25 rm -f /var/run/utmp
26 echo -n > /var/run/utmp
27 chmod 664 /var/run/utmp
28 chown root.tty /var/run/utmp
29 echo $$ >/var/run/linuxrc.pid