# cat /unslung/rc.sysinit
#!/bin/sh
# The raid devices are /dev/md1 /dev/md2 /dev/md3 /dev/md4
# They have already been created in 'linuxrc'
# Create and use swap partition
/sbin/mkswap /dev/md3
/bin/sleep 2
/sbin/swapon /dev/md3
# Mount data and conf partitions
/bin/mount -t ext3 /dev/md2 /share/hdd/conf -o rw,noatime
/bin/mount -t ext3 /dev/md1 /share/hdd/data -o rw,noatime
# Mount the 4th partition
/bin/mount -t ext3 /dev/md4 /share/hdd/data/public -o rw,noatime
/bin/mount /share/hdd/data/public /public -o bind
# Continue with the rest of the /etc/rc.d/rc.sysinit script
return 1
|