summaryrefslogtreecommitdiff
path: root/i/pc104/initrd/create.sh
diff options
context:
space:
mode:
authordufourj2006-01-16 21:47:12 +0000
committerdufourj2006-01-16 21:47:12 +0000
commit144fba14de1f73fb7f8ce38639f05b795c8af141 (patch)
tree2159ee6d058da4f3c88d94c9accf3f013041f1a9 /i/pc104/initrd/create.sh
parentfffdf9f5a7918070577ff6a96f083e957c2cf377 (diff)
PC104 :
- modifications mineurs pour les scripts du mode autonome ; - début du script d'update en autonome ; - correction du problème de dhcp en autonome ; - problème de ctrl-c ; - SD Card sux à mort !!
Diffstat (limited to 'i/pc104/initrd/create.sh')
-rwxr-xr-xi/pc104/initrd/create.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/i/pc104/initrd/create.sh b/i/pc104/initrd/create.sh
index b0d66ab..9bca54b 100755
--- a/i/pc104/initrd/create.sh
+++ b/i/pc104/initrd/create.sh
@@ -50,15 +50,17 @@ mount_initrd ()
create_empty_struct ()
{
# Create an empty root structure
- mkdir -p $INITRD_TEMPDIR/{bin,dev,etc,lib,proc,sbin,usr/{sbin,bin},var/lock,robot,initrd}
+ mkdir -p $INITRD_TEMPDIR/{bin,dev,etc,proc,sbin,usr/{sbin,bin},var/lock,robot,initrd,mnt/localsys}
# Create all the devices files we need
create_dev
# Fstab
install -m 644 $INITRD_CONFIG_DIR/fstab $INITRD_TEMPDIR/etc/fstab
- # Inittab
- #install -m 644 $INITRD_CONFIG_DIR/inittab $INITRD_TEMPDIR/etc/inittab
+ # Udhcpc script
+ install -m 755 $INITRD_CONFIG_DIR/udhcpc.script $INITRD_TEMPDIR/etc/udhcpc.script
# Copy the linuxrc script
install -m 755 $INITRD_CONFIG_DIR/linuxrc $INITRD_TEMPDIR/linuxrc
+ # Copy the update script for autonome mode
+ install -m 755 $INITRD_CONFIG_DIR/update_initrd.sh $INITRD_TEMPDIR/etc/update_initrd.sh
}
create_dev ()
@@ -73,7 +75,10 @@ create_dev ()
# Create the console for logging ? Useful ? XXX
$makedev -v consoleonly
#tty1 tty2 tty3 tty4 tty5
- #$makedev -v ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6
+ # Serial
+ $makedev -v ttyS0 ttyS1 ttyS2
+ # Hard disk
+ $makedev -v hda
# XXX Complete...
# Back to the originated directory
cd $cur_dir