#!/bin/sh -e # $Id$ # TO: /etc/rc.sysinit . /etc/profile printf ' \x1b[1mWelcome to \x1b[m\x1b[1m\x1b[31mSVR4/OpenWare\x1b[m\n' printf ' \x1b[1mCopyright (C) 2024 \x1b[33mNishi\x1b[m\n' printf ' \x1b[1mCopyright (C) \x1b[33mThe Regents of the University of California\x1b[m\n' printf ' \x1b[1mCopyright (C) \x1b[33mAT&T\x1b[m\n' echo 'Mounting a required filesystem' mkdir -p /dev/pts mount -t devpts devpts /dev/pts mount -t proc proc /proc mount -t sysfs sysfs /sys mount -t tmpfs tmpfs /tmp ln -sf /proc/self/fd /dev/fd ln -sf /proc/kcore /dev/core if [ "`grep -Ec 'installer' /proc/cmdline`" -gt "0" ]; then echo '************* Booting up installer system *************' echo 'Welcome to the installer system.' echo 'This image has 2 users:' echo ' root (Password is root)' echo ' charlie (Password is charlie)' echo 'If you want to install, just login to root and type:' echo ' setup' echo 'If you want to install, but with custom partition' echo 'layout, or dualboot, type:' echo ' manual-install' echo '*******************************************************' mount -t tmpfs tmpfs /var/log mount -t tmpfs tmpfs /var/run mount -t tmpfs tmpfs /var/tmp mount -t tmpfs tmpfs /var/db mount -t tmpfs tmpfs /run mount -t tmpfs tmpfs /root touch /tmp/resolv.conf mkdir -p /var/run fi if [ "`grep -Ec 'installer' /proc/cmdline`" -gt "0" ]; then : else echo "Remounting root" mount -o remount,rw / fi rm -f /run/initctl ln -s /dev/initctl /run/initctl echo "Setting popdev for hotplug event" echo /sbin/popdev > /proc/sys/kernel/hotplug if [ -e "/etc/nodename" ]; then echo "Setting nodename: `cat /etc/nodename`" hostname `cat /etc/nodename` fi echo "Loading IPv6" modprobe ipv6 echo "Setting loopback" ifconfig lo 127.0.0.1 netmask 255.0.0.0 ifconfig lo up echo "Loading modules" find /sys -name "modalias" | while read a; do load=1 ( cat $a | grep "pcspkr" >/dev/null 2>&1 ) && load=0 if [ "$load" = "1" ]; then modprobe `cat $a` >/dev/null 2>&1 || true fi done if [ -e /usr/sbin/alsactl ]; then echo "Initializing ALSA" alsactl init fi if [ "`grep -Ec 'installer' /proc/cmdline`" -gt "0" ]; then : else echo "Mounting all filesystems" mount -a || true fi