From c3dc56924990ac3fe504042dd5e4d35488089b2d Mon Sep 17 00:00:00 2001 From: Paul J R Date: Sat, 24 Aug 2013 22:03:31 +1000 Subject: [PATCH] new start scripts --- src/bootimage/syslinux/syslinux.cfg | 6 +++ .../custom/filesystem/etc/init.d/S01mounts | 9 +++++ .../filesystem/etc/init.d/S02custom_pre_startup | 37 ++++++++++++++++++++ .../custom/filesystem/etc/init.d/S02mounts | 9 ----- .../custom/filesystem/etc/init.d/S80custom_startup | 13 ------- 5 files changed, 52 insertions(+), 22 deletions(-) create mode 100755 src/bootimage/syslinux/syslinux.cfg create mode 100755 src/buildroot-2013.05/custom/filesystem/etc/init.d/S01mounts create mode 100755 src/buildroot-2013.05/custom/filesystem/etc/init.d/S02custom_pre_startup delete mode 100755 src/buildroot-2013.05/custom/filesystem/etc/init.d/S02mounts delete mode 100755 src/buildroot-2013.05/custom/filesystem/etc/init.d/S80custom_startup delete mode 100644 src/buildroot-2013.05/custom/filesystem/pjr_custom_stuff diff --git a/src/bootimage/syslinux/syslinux.cfg b/src/bootimage/syslinux/syslinux.cfg new file mode 100755 index 0000000..3916e4e --- /dev/null +++ b/src/bootimage/syslinux/syslinux.cfg @@ -0,0 +1,6 @@ +timeout 100 + +default wyse +label wyse + kernel /boot/kernel + append initrd=/boot/initrd ignore_loglevel pata_cs5536.msr=1 pci=nobios kmap=qwerty/uk waitusb=5 diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01mounts b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01mounts new file mode 100755 index 0000000..c88e882 --- /dev/null +++ b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01mounts @@ -0,0 +1,9 @@ +#!/bin/sh + +mkdir /proc > /dev/null 2>&1 +mount -t proc proc /proc +mkdir /sys > /dev/null 2>&1 +mount -t sysfs sys /sys +mkdir -p /dev/pts > /dev/null 2>&1 +mount -t devpts devpts /dev/pts +mount /tmp > /dev/null 2>&1 diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S02custom_pre_startup b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S02custom_pre_startup new file mode 100755 index 0000000..dd39d06 --- /dev/null +++ b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S02custom_pre_startup @@ -0,0 +1,37 @@ +#!/bin/sh + +# deal with our mounts +mkdir /proc > /dev/null 2>&1 +mount -t proc proc /proc +mkdir /sys > /dev/null 2>&1 +mount -t sysfs sys /sys +mkdir -p /dev/pts > /dev/null 2>&1 +mount -t devpts devpts /dev/pts +mount /tmp > /dev/null 2>&1 + + +# create out gps0 +ln -s /dev/ttyS0 /dev/gps0 +mknod -m 0664 /dev/pps0 c 252 0 +ln -s /dev/pps0 /dev/gpspps0 + +# mount the config file system +mkdir /fs > /dev/null 2>&1 +mount /dev/sda1 /fs > /dev/null 2>&1 + +if [ -f /fs/config/system ] +then + . /fs/config/system +fi + +if [ -f /fs/config/dropbear_dss_host_key ] +then + cp /fs/config/dropbear_dss_host_key /etc/dropbear + chmod 600 /etc/dropbear/dropbear_dss_host_key +fi + +if [ -f /fs/config/dropbear_rsa_host_key ] +then + cp /fs/config/dropbear_rsa_host_key /etc/dropbear + chmod 600 /etc/dropbear/dropbear_rsa_host_key +fi diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S02mounts b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S02mounts deleted file mode 100755 index c88e882..0000000 --- a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S02mounts +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -mkdir /proc > /dev/null 2>&1 -mount -t proc proc /proc -mkdir /sys > /dev/null 2>&1 -mount -t sysfs sys /sys -mkdir -p /dev/pts > /dev/null 2>&1 -mount -t devpts devpts /dev/pts -mount /tmp > /dev/null 2>&1 diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S80custom_startup b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S80custom_startup deleted file mode 100755 index 895608c..0000000 --- a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S80custom_startup +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - - -# create out gps0 -ln -s /dev/ttyS0 /dev/gps0 -mknod -m 0664 /dev/pps0 c 252 0 -ln -s /dev/pps0 /dev/gpspps0 - -# mount the config file system -mkdir /fs > /dev/null 2>&1 -mount /dev/sda1 /fs > /dev/null 2>&1 - -ln -s /fs/config /config diff --git a/src/buildroot-2013.05/custom/filesystem/pjr_custom_stuff b/src/buildroot-2013.05/custom/filesystem/pjr_custom_stuff deleted file mode 100644 index e69de29..0000000 -- 1.7.0.4