From 4ad1ebe086190121e3ea63cf1abd00d0a87f6fc3 Mon Sep 17 00:00:00 2001 From: Dirk Date: Sun, 8 Jun 2014 23:29:44 +0200 Subject: Minor cleanup. --- remote/rootfs/rootfs-stage31/data/init | 4 ++++ .../data/opt/openslx/scripts/openslx-create_issue | 18 +++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init index 2a4a29bc..e3c3f27e 100755 --- a/remote/rootfs/rootfs-stage31/data/init +++ b/remote/rootfs/rootfs-stage31/data/init @@ -1,4 +1,5 @@ #!/bin/ash +# Copyright (c) 2013, 2014 - bwLehrpool Projekt # Copyright (c) 2012 - OpenSLX GmbH # # This program is free software distributed under the GPL version 2. @@ -31,6 +32,8 @@ busybox mount -n -t tmpfs -o 'mode=755' none "$FUTURE_ROOT" mkdir -p "$FUTURE_ROOT/opt/openslx" # let kernel know that mdev is to be used for hotplug +# FIXME: check, if could be entirely replaced by: +# mount -n -t devtmpfs -o 'rw,nosuid,noexec,mode=0755' initramfsdevs /dev echo "/sbin/mdev" > /proc/sys/kernel/hotplug # read kernel command line @@ -81,6 +84,7 @@ fi # discover devices mdev -s bench_event "MDEV" "mdev done" +echo "" > /proc/sys/kernel/hotplug # suppress kernel output if neither DEBUG nor SPLASH is set if [ $SPLASH -eq 0 ]; then diff --git a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue index 8fbd5c8b..3bd3301b 100755 --- a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue +++ b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue @@ -1,9 +1,21 @@ #!/bin/sh +# Copyright (c) 2013, 2014 - bwLehrpool Projekt +# Copyright (c) 2012 - OpenSLX GmbH +# +# This program is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your feedback to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org +# +# First script for initial ramfs for OpenSLX linux stateless clients +############################################################################# -# Set greeting and add information on booted system -# Fixme (add version string and distro name) +# Set greeting and add information about the booted system len=$(expr length "$(cat /etc/hostname)") -while [ $len -le 52 ] ; do +while [ $len -le 56 ] ; do space="$space " len=$(($len + 1)) done -- cgit v1.2.3-55-g7522