From 5acda3eaeabae9045609539303a8c12c4ce401f1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 25 Apr 2016 12:01:08 +0200 Subject: merge with latest dev version --- .../data/opt/openslx/scripts/openslx-create_issue | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 core/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue (limited to 'core/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue') diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue new file mode 100755 index 00000000..879463cd --- /dev/null +++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue @@ -0,0 +1,25 @@ +#!/bin/bash +# 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 +############################################################################# +PATH=$PATH:/opt/openslx/bin:/opt/openslx/sbin + +# Set greeting and add information about the booted system +len=$(expr length "$(cat /etc/hostname)") +while [ $len -le 56 ] ; do + space="$space " + len=$(($len + 1)) +done + +sed "s/%space%/$space/g" /opt/openslx/etc/issue.template > /etc/issue + -- cgit v1.2.3-55-g7522