Commit 56150951 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

userspace/rootfs_override: fixes in startup scripts/config files

parent f0eec2dd
# /etc/fstab: static file system information. # /etc/fstab: static file system information.
# #
# <file system> <mount pt> <type> <options> <dump> <pass> # <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto 0 1 proc /proc proc defaults 0 0
proc /proc proc defaults 0 0 devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 tmpfs /tmp tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0 tmpfs /var/log tmpfs defaults 0 0
tmpfs /var/log tmpfs defaults 0 0 sysfs /sys sysfs defaults 0 0
sysfs /sys sysfs defaults 0 0
#!/bin/sh
#for ttyGS0 console
insmod /lib/modules/2.6.39/kernel/g_serial.ko
\ No newline at end of file
...@@ -9,4 +9,10 @@ ...@@ -9,4 +9,10 @@
#ifplugd -i eth0 #ifplugd -i eth0
#udhcpc -n #udhcpc -n
/usr/sbin/ifplugd -I -f -i eth0 rootloc=`mount | grep rootfs | grep nfs`
\ No newline at end of file if [ "$rootloc" != "" ]; then
echo "Running via NFS, no ifplugd."
else
echo "Starting ifplugd..."
/usr/sbin/ifplugd -I -f -i eth0
fi
...@@ -14,40 +14,26 @@ ...@@ -14,40 +14,26 @@
# process == program to run # process == program to run
# Startup the system # Startup the system
#null::sysinit:/bin/mount -o remount,rw / ::sysinit:/bin/mount -t proc proc /proc
#null::sysinit:/etc/init.d/rc.sysinit ::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
::sysinit:/bin/mkdir -p /dev/pts
#/bin/mount -t proc proc /proc ::sysinit:/bin/mkdir -p /dev/shm
#null::sysinit:/bin/mount -a ::sysinit:/bin/mount -a
#null::sysinit:/bin/mount -o remount,rw /
#null::sysinit:/bin/hostname -F /etc/hostname
#null::sysinit:/sbin/ifconfig lo 127.0.0.1 up
#null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
# now run any rc scripts # now run any rc scripts
::sysinit:/etc/init.d/rc.sysinit
::sysinit:/etc/init.d/rcS ::sysinit:/etc/init.d/rcS
# Set up a couple of getty's
#tty1::respawn:/sbin/getty 38400 tty1
#tty2::respawn:/sbin/getty 38400 tty2
# Put a getty on the serial port # Put a getty on the serial port
ttyGS0::respawn:/bin/ash --login ttyGS0::respawn:/bin/ash --login
#/sbin/getty -L ttyS0 115200 vt100 ttyS0::respawn:/bin/ash --login
# Logging junk # Logging junk
null::sysinit:/bin/touch /var/log/messages null::sysinit:/bin/touch /var/log/messages
null::respawn:/sbin/syslogd -n -m 0 null::respawn:/sbin/syslogd -n -m 0
null::respawn:/sbin/klogd -n null::respawn:/sbin/klogd -n
tty3::respawn:/usr/bin/tail -f /var/log/messages
# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting # Stuff to do before rebooting
null::shutdown:/usr/bin/killall klogd null::shutdown:/usr/bin/killall klogd
null::shutdown:/usr/bin/killall syslogd null::shutdown:/usr/bin/killall syslogd
null::shutdown:/bin/umount -a -r null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
echo "Starting up WR Switch (18-ports MiniBackplane version)..." echo "Starting up WR Switch (18-ports MiniBackplane version)..."
export WR_HOME="/wr" export WR_HOME="/wr"
$WR_HOME/bin/load-fpga $WR_HOME/lib/firmware/8ports_mb.bin $WR_HOME/bin/load-virtex $WR_HOME/lib/firmware/8ports_mb.bin
$WR_HOME/bin/lm32-loader $WR_HOME/lib/firmware/rt_cpu.bin $WR_HOME/bin/load-lm32 $WR_HOME/lib/firmware/rt_cpu.bin
insmod $WR_HOME/lib/modules/wr_vic.ko insmod $WR_HOME/lib/modules/wr_vic.ko
insmod $WR_HOME/lib/modules/wr-nic.ko insmod $WR_HOME/lib/modules/wr-nic.ko
insmod $WR_HOME/lib/modules/wr_rtu.ko insmod $WR_HOME/lib/modules/wr_rtu.ko
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment