# # /etc/inittab: system runlevel description # +HOSTNAME::henry: +TIMEZONE::America/Rosario: +KEYMAP::us: +NETDEV::wlo1: # Runlevels: # 0 Halt # 1(S) Single-user # 2 Multi-user # 3-5 Not used # 6 Reboot # Runlevel definition id:2:initdefault: # Before we start mount /proc & /sys proc::sysinit:+/bin/mount -t proc none /proc sysf::sysinit:+/bin/mount -t sysfs none /sys # Start udev, mount standard filesystems and swap udev::bootwait:+/sbin/start_udev mntw::bootwait:+/bin/mount -o remount,rw / mall::bootwait:+/bin/mount -a -O no_netdev -t noproc swon::boot:+/sbin/swapon -a # Clean up and initialize things utmp::boot:+/bin/echo > /var/run/utmp crun::boot:+/usr/bin/find /var/run -name "*.pid" -delete cloc::boot:+/usr/bin/find /var/lock ! -type d -delete tmpc::boot:+/usr/bin/find /tmp ! -name tmp -delete mice::boot:+/bin/mkdir -p -m 1777 /tmp/.ICE-unix sysc::boot:+/sbin/sysctl -p > /dev/null lcfg::boot:+/sbin/ldconfig # Setup time, restore seed and setup time host::boot:+/bin/hostname $HOSTNAME seed::boot:+/bin/cat /var/lib/urandom/seed > /dev/urandom tzon::boot:+/bin/ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime hcts::boot:+/sbin/hwclock --hctosys # Configure font and console keyboard map kmap::boot:+/usr/bin/loadkeys -q $KEYMAP term::boot:+/usr/bin/setterm -blank 15 # Initialize logging bmsg::boot:+/bin/dmesg > /var/log/boot slog::boot:+/usr/sbin/syslogd -n klog::boot:+/usr/sbin/klogd -c 1 -n # Poweroff/reboot sequence stty:06:wait:+/bin/stty onlcr ki15:06:wait:+/sbin/killall5 -15 wait:06:wait:+/bin/sleep 2 kil9:06:wait:+/sbin/killall5 -9 ssed:06:wait:+/bin/dd if=/dev/urandom of=/var/lib/urandom/seed count=1 2> /dev/null scth:06:wait:+/sbin/hwclock --systohc halt:06:wait:+/sbin/halt -w swof:06:wait:+/sbin/swapoff -a umnt:06:wait:+/bin/umount -a -d -r -t nosysfs,noproc,nodevtmpfs umna:06:wait:+/bin/umount -a -r sync:06:wait:+/bin/sync rmro:06:wait:+/bin/mount -o remount,ro / # Poweroff pwrd:0:wait:+/sbin/poweroff -d -f -i # Reboot rbrt:6:wait:+/sbin/reboot -d -f -i # Single user mode su:S:wait:/sbin/sulogin -p # Initialize loopback and bring up main network interface lo1:2345:once:+/sbin/ip addr add 127.0.0.1/8 dev lo broadcast + scope host lo2:2345:once:+/sbin/ip link set dev lo up ifup:2345:wait:+/sbin/ip link set dev $NETDEV up # Start basic services mbus:2345:once:+/bin/mkdir /var/run/dbus wifi:2345:once:+/sbin/dhcpcd -h $HOSTNAME -t 10 -z $NETDEV -C resolv.conf 2>&1 | logger -t dhcpcd bat0:2345:once:+/usr/sbin/powertop --auto-tun 2>&1 | logger -t powertop dns:2345:respawn:+/usr/sbin/unbound -d acpi:2345:respawn:+/usr/sbin/acpid -f >> /var/log/acpi.log 2>&1 dbus:2345:respawn:+/usr/sbin/dbus-daemon --system --nofork # Bring up terminals tty1:2345:respawn:/sbin/agetty --noclear 38400 tty1 linux tty2:2345:respawn:/sbin/agetty 38400 tty2 linux tty3:2345:respawn:/sbin/agetty 38400 tty3 linux tty4:2345:respawn:/sbin/agetty 38400 tty4 linux tty5:2345:respawn:/sbin/agetty 38400 tty5 linux tty6:2345:respawn:/sbin/agetty 38400 tty6 linux # In case ctrl+alt+del is pressed, trigger reboot ca::ctrlaltdel:/sbin/shutdown -t3 -r now # End of file