mirror of https://github.com/fspc/gbootroot.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
623 B
35 lines
623 B
#!/bin/sh
|
|
#
|
|
# $Id: rcS.helper,v 1.1 2002/12/11 23:41:50 freesource Exp $
|
|
# Used by the Example.yard template.
|
|
# /etc/rcS: System initialization script.
|
|
#
|
|
|
|
# Check the filesystem. Genext2fs eq ext2
|
|
|
|
echo "Checking root file system..."
|
|
|
|
mount -n /proc
|
|
|
|
#cramfsck /dev/ubd/0
|
|
|
|
# fsck -C /dev/ubd/0
|
|
|
|
#if [ $? -gt 1 ]
|
|
# then
|
|
# fsck.cramfs /dev/ubd/0
|
|
#fi
|
|
|
|
# e2fsck -y /dev/ubd/0
|
|
|
|
# Mount everything mentioned in fstab
|
|
# .. but proc was mounted previous to prevent
|
|
# fsck.ext2 from complaining, anyways.
|
|
mount -o remount /
|
|
mount -a
|
|
|
|
# Compute module dependencies
|
|
# /sbin/depmod -a
|
|
|
|
# Set host name
|
|
/bin/hostname bootroot
|
|
|