rootfs cleanups - added fs/network init, syslogd, telnetd, serial console, dhcp client
This commit is contained in:
32
fs-add/etc/init.d/rcSBB
Executable file
32
fs-add/etc/init.d/rcSBB
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/busybox sh
|
||||
|
||||
busybox echo "Welcome to SATIP-AXE Linux!"
|
||||
|
||||
busybox mount -t proc proc /proc
|
||||
# remount root filesystem in rw mode
|
||||
busybox mount -o remount,rw /
|
||||
# Create all symbolic links.
|
||||
/bin/busybox --install -s
|
||||
|
||||
# mount /dev and devpts to allow logging in
|
||||
mount -t tmpfs -o size=64k,mode=0755 tmpfs /dev
|
||||
mkdir /dev/pts /dev/input
|
||||
mount -t devpts none /dev/pts -ogid=5,mode=620
|
||||
|
||||
# use mdev/sysfs
|
||||
mount -t sysfs sysfs /sys
|
||||
echo /sbin/mdev > /proc/sys/kernel/hotplug
|
||||
echo /sbin/hotplug > /proc/sys/kernel/hotplug
|
||||
mdev -s
|
||||
|
||||
# make /tmp as tmpfs
|
||||
mount -t tmpfs -o size=1M tmpfs /tmp
|
||||
|
||||
# start syslogd
|
||||
syslogd -C256
|
||||
|
||||
# basic network
|
||||
hostname satip-axe
|
||||
ifconfig lo 127.0.0.1 netmask 255.255.255.0
|
||||
ifconfig eth0 up
|
||||
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
|
Reference in New Issue
Block a user