From d9cac76fee8b375f70eabfb6498cf06d066c6ebe Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sat, 30 Jun 2007 22:27:51 +0000 Subject: Better formatting of SLX version string in issue file. Fixes in pcitable file (snd- ...), see #100 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1199 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/bin/servconfig | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'initramfs/initrd-stuff/bin/servconfig') diff --git a/initramfs/initrd-stuff/bin/servconfig b/initramfs/initrd-stuff/bin/servconfig index 9440b405..98bb6943 100755 --- a/initramfs/initrd-stuff/bin/servconfig +++ b/initramfs/initrd-stuff/bin/servconfig @@ -60,8 +60,14 @@ cp -a /rootfs/* /mnt 2>/dev/null # set greeting and add information on booted system len=$(expr length ${SLXVERSION}${SYSTEM_NAME}) -vdstr="V${SLXVERSION}/${SYSTEM_NAME})" -while [ $len -le 28 ] ; do +if [ $len -le 28 ] ; then + vdstr="Stateless Workstation (V${SLXVERSION}/${SYSTEM_NAME})" + smax=28 +else + vdstr="V${SLXVERSION}/${SYSTEM_NAME}" + smax=52 +fi +while [ $len -le $smax ] ; do vdstr="$vdstr " len=$(expr $len + 1) done @@ -79,7 +85,7 @@ echo " | |_| | | | |___| | | | ____| | |___ / / _____/|__| |______|__| |__| |_______|______|__| |__| - Stateless Workstation ($vdstr (c) + $vdstr (c) ">/mnt/etc/issue ############################################################################# -- cgit v1.2.3-55-g7522