diff options
author | Sebastian | 2016-04-25 12:01:08 +0200 |
---|---|---|
committer | Sebastian | 2016-04-25 12:01:08 +0200 |
commit | 5acda3eaeabae9045609539303a8c12c4ce401f1 (patch) | |
tree | 7e71975f8570b05aafe2ea6ec0e242a8912387bb /core/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue | |
parent | initial commit (diff) | |
download | mltk-5acda3eaeabae9045609539303a8c12c4ce401f1.tar.gz mltk-5acda3eaeabae9045609539303a8c12c4ce401f1.tar.xz mltk-5acda3eaeabae9045609539303a8c12c4ce401f1.zip |
merge with latest dev version
Diffstat (limited to 'core/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue')
-rwxr-xr-x | core/rootfs/rootfs-stage32/data/opt/openslx/scripts/openslx-create_issue | 25 |
1 files changed, 25 insertions, 0 deletions
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 + |