From 0b409958ed23178914ff4ede629fadb6df2efc72 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 9 Mar 2015 16:19:51 -0500 Subject: [PATCH] ubuntu/debian: drop some of the customizations, just a clean image.. Signed-off-by: Robert Nelson --- lib/debian-finish.sh | 37 ------------------------------------- lib/ubuntu-finish.sh | 15 --------------- 2 files changed, 52 deletions(-) diff --git a/lib/debian-finish.sh b/lib/debian-finish.sh index df1c486..217aa1f 100644 --- a/lib/debian-finish.sh +++ b/lib/debian-finish.sh @@ -81,43 +81,6 @@ cat > /etc/e2fsck.conf <<-__EOF__ broken_system_clock = true __EOF__ -cat > /etc/init.d/generic-boot-script.sh <<-__EOF__ -#!/bin/sh -e -### BEGIN INIT INFO -# Provides: generic-boot-script.sh -# Required-Start: \$local_fs -# Required-Stop: \$local_fs -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start daemon at boot time -# Description: Enable service provided by daemon. -### END INIT INFO - -case "\$1" in -start|reload|force-reload|restart) - if [ -f /boot/SOC.sh ] ; then - board=\$(grep board /boot/SOC.sh | awk -F"=" '{print \$2}') - if [ -f "/opt/scripts/boot/\${board}.sh" ] ; then - /bin/sh /opt/scripts/boot/\${board}.sh >/dev/null 2>&1 & - fi - fi - ;; -stop) - exit 0 - ;; -*) - echo "Usage: /etc/init.d/generic-boot-script.sh {start|stop|reload|restart|force-reload}" - exit 1 - ;; -esac - -exit 0 - -__EOF__ - -chmod u+x /etc/init.d/generic-boot-script.sh -insserv generic-boot-script.sh || true - #Cleanup: mv /boot/uboot/bootdrive /boot/uboot/backup/ || true mv /boot/uboot/mounts /boot/uboot/backup/ || true diff --git a/lib/ubuntu-finish.sh b/lib/ubuntu-finish.sh index f3617f2..0033cbd 100644 --- a/lib/ubuntu-finish.sh +++ b/lib/ubuntu-finish.sh @@ -71,21 +71,6 @@ if [ "x${usbnet_mem}" != "x" ] ; then echo "vm.min_free_kbytes = ${usbnet_mem}" >> /etc/sysctl.conf fi -cat > /etc/init/generic-boot-script.conf <<-__EOF__ -start on runlevel 2 - -script - -if [ -f /boot/SOC.sh ] ; then - board=\$(grep board /boot/SOC.sh | awk -F"=" '{print \$2}') - if [ -f "/opt/scripts/boot/\${board}.sh" ] ; then - /bin/sh /opt/scripts/boot/\${board}.sh >/dev/null 2>&1 & - fi -fi -end script - -__EOF__ - #Cleanup: mv /boot/uboot/bootdrive /boot/uboot/backup/ || true mv /boot/uboot/mounts /boot/uboot/backup/ || true