CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
added initial stuff based on busybox-1.14.1 (need testing)
[initrd.git] / filesystem / rc
CommitLineData
b70e0e65
JB
1#!/bin/sh
2#
3# /etc/rc: Init startup script
4#
5
6exec > /dev/console < /dev/console 2>&1
7
8echo "The system is coming up. Please wait."
9
10# Mounting filesystems
11/bin/mount -v -a
12
13# Remounting root filesystem (rw)
14/bin/mount -o remount,rw /
15
16# Populating /dev
17/sbin/mdev -s
18
19# Registering mdev as hotplug agent
20echo "/bin/mdev" > /proc/sys/kernel/hotplug
21
22# Creating and mounting /dev/pts
23/bin/mkdir /dev/pts
24/bin/mount -t devpts devpts /dev/pts
25
26# Starting kernel log daemon
27/sbin/klogd
28
29# Setting hostname
30/bin/hostname crux
31
32# Loading network loopback device
33/bin/ip addr add 127.0.0.1/8 dev lo broadcast + scope host
34/bin/ip link set lo up
35
36# Saving boot messages
37/bin/dmesg > /var/log/boot
38
39# End of file