From 95d1dbea5df021d4b0a67a4137e12c9ac566fd47 Mon Sep 17 00:00:00 2001 From: Paul J R Date: Sat, 24 Aug 2013 22:04:02 +1000 Subject: [PATCH] initial start --- .../filesystem/etc/init.d/S01custom_pre_startup | 37 ++++++++++++++++++++ .../custom/filesystem/etc/init.d/S01mounts | 9 ----- .../filesystem/etc/init.d/S02custom_pre_startup | 37 -------------------- 3 files changed, 37 insertions(+), 46 deletions(-) create mode 100755 src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup delete mode 100755 src/buildroot-2013.05/custom/filesystem/etc/init.d/S01mounts delete mode 100755 src/buildroot-2013.05/custom/filesystem/etc/init.d/S02custom_pre_startup diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup new file mode 100755 index 0000000..dd39d06 --- /dev/null +++ b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_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/S01mounts b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01mounts deleted file mode 100755 index c88e882..0000000 --- a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S01mounts +++ /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/S02custom_pre_startup b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S02custom_pre_startup deleted file mode 100755 index dd39d06..0000000 --- a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S02custom_pre_startup +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 -- 1.7.0.4