summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Janczyk2007-01-10 19:49:14 +0100
committerMichael Janczyk2007-01-10 19:49:14 +0100
commit28180ec35880ff148174afa5d2aff0fbb507f315 (patch)
tree1501a2e5e131f035c3ad38f10556a1e618d4b611
parentBusybox is now properly named for the two supported architectures: i386 (diff)
downloadcore-28180ec35880ff148174afa5d2aff0fbb507f315.tar.gz
core-28180ec35880ff148174afa5d2aff0fbb507f315.tar.xz
core-28180ec35880ff148174afa5d2aff0fbb507f315.zip
runvamwre: path variable added and floppy image ranamed.
nvram: now with 'winterzeit' dhcpmkconfig: DEBUGLEVEL unset, so that the DEBUGLEVEL doesn't change for no reason during boot servconfig: sed expression changed to work with busybox git-svn-id: http://svn.openslx.org/svn/openslx/trunk@610 95ad53e4-c205-0410-b2fa-d234c58c8868
-rwxr-xr-xinitramfs/initrd-stuff/bin/dhcpmkconfig5
-rwxr-xr-xinitramfs/initrd-stuff/bin/servconfig23
-rw-r--r--vmware/nvram.5.0bin8664 -> 8664 bytes
-rwxr-xr-xvmware/runvmware9
4 files changed, 24 insertions, 13 deletions
diff --git a/initramfs/initrd-stuff/bin/dhcpmkconfig b/initramfs/initrd-stuff/bin/dhcpmkconfig
index 86fd42c7..0fd7583a 100755
--- a/initramfs/initrd-stuff/bin/dhcpmkconfig
+++ b/initramfs/initrd-stuff/bin/dhcpmkconfig
@@ -4,9 +4,10 @@
# clients used within OpenSLX initramfs. The result is written in unified
# form to the /etc/machine-setup file
#
-# Dirk von Suchodoletz <dvs@OpenSLX.com>, 15-12-2006
+# Dirk von Suchodoletz <dvs@OpenSLX.com>, 09-01-2007
# Lars Mueller, 23-06-2006
# Oliver Tappe, 23-06-2006
+# Michael Janczyk, 09-01-2007
#
# (c) 2006 - RZ Universitaet Freiburg
@@ -57,12 +58,14 @@ enabled via kernel command\n# line)." >>$cfgfile
dhcl="udhcpc"; echo -e "$cfgmsg\n$infomsg" >>$cfgfile
# if $cfgfile is changed change target for set output accordingly
unset infomsg HOME IFS mask lease interface cfgmsg cfgfile
+ unset DEBUGLEVEL
set | sed \
-e "s,^P.*,,;s,ntpsrv,ntp_servers,;s,ip,clientip," \
-e "s,serverid,serverip,;s,subnet,subnet_mask," \
-e "s,router,gateway,;s,hostname,host_name," \
-e "s,domain,domain_name,;s,dns,domain_name_servers," \
-e "s,broadcast,broadcast_address,;s,dhc.*,,;/^$/d" \
+ -e "/OPTIND.*/d" \
>>/tmp/confviadhcp
;;
esac
diff --git a/initramfs/initrd-stuff/bin/servconfig b/initramfs/initrd-stuff/bin/servconfig
index 207adc5b..9155a2de 100755
--- a/initramfs/initrd-stuff/bin/servconfig
+++ b/initramfs/initrd-stuff/bin/servconfig
@@ -5,7 +5,7 @@
# system is setup when servconfig starts
#
# Dirk von Suchodoletz <dvs@OpenSLX.com>, 14-12-2006
-# Michael Janczyk <mj0@uni-freiburg.de>, 10-11-2006
+# Michael Janczyk <mj0@uni-freiburg.de>, 10-01-2007
# Lars Mueller <lm@OpenSLX.com>, 23-06-2006
# Oliver Tappe <ot@OpenSLX.com>, 23-06-2006
#
@@ -330,19 +330,26 @@ Type=Application" >/mnt/etc/X11/sessions/default.desktop
sessions=$(ls /mnt/var/lib/vmware/vmsessions/*.desktop 2>/dev/null)
# fixme: the following part is to be tested!!
if [ -n "${sessions}" ]; then
+ vmsessionsnr=0
+ xdmsessionsnr=0
for i in /mnt/var/lib/vmware/vmsessions/*.desktop; do
# only link if in right slxgrp
- slxgrpstr=$(cat ${i} | sed -e "s/.*/\L&/" | sed -n "/^slxgrp/p" \
- | sed -e "s/slxgrp=/ /;s/$/ /")
+ slxgrpstr=$(sed \
+ 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;/slxgrp=/!d' ${i} \
+ | sed '$!d;s/slxgrp=//')
slxgrptest="false"
- if strinstr " ${slxgrp} " "${slxgrpstr}"; then slxgrptest="true"; fi
- xdmshow=$(cat ${i}|sed -e "s/.*/\L&/" | sed -n "/^xdm/p"\
- |sed -e "s,xdm=,,")
+ # FIXME: maybe logfile sometime ;)
+ #echo "=${slxgrpstr}="
+ if strinstr " ${slxgrp} " " ${slxgrpstr} "; then slxgrptest="true"; fi
+ xdmshow=$(sed \
+ 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;/xdm=/!d' ${i} \
+ | sed -e '$!d;s/xdm=//')
if [ -z "${slxgrp}" -o "${slxgrptest}" = "true" ]; then
#session_name=$(cat ${i} | grep -iw "exec" \
# | awk -F "=" '{print $2}')
- session_name=$(cat ${i} | sed -e "s/.*/\L&/" \
- | sed -n "/^exec/p"|sed -e "s,exec=,,")
+ session_name=$(sed \
+ 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;/^exec=/!d' ${i} \
+ | sed '$!d;s/exec=//')
# create session links so that they con be startet via xdm
cd /mnt/var/X11R6/bin
ln -s desktop-session ${session_name}
diff --git a/vmware/nvram.5.0 b/vmware/nvram.5.0
index a4506b1d..85125f1e 100644
--- a/vmware/nvram.5.0
+++ b/vmware/nvram.5.0
Binary files differ
diff --git a/vmware/runvmware b/vmware/runvmware
index bda1ed11..819e7777 100755
--- a/vmware/runvmware
+++ b/vmware/runvmware
@@ -4,17 +4,18 @@
# X Stations and interactive session chooser (v4)
#
# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 18-03-2006
-# Michael Janczyk <mj0@uni-freiburg.de>, 12-12-2006
+# Michael Janczyk <mj0@uni-freiburg.de>, 10-01-2007
# Copyright: (c) 2003, 2006 - RZ Universitaet Freiburg
#
-# Version: 0.16.531
+# Version: 0.16.610
#
################################################################################
-### VERBOSE? ###################################################################
+### VERBOSE?/PATH ##############################################################
# set verbose mode (set -x(v))
#set -xv
+export PATH="${PATH}:/var/X11R6/bin:/usr/X11R6/bin"
### HEADER SECTION #############################################################
@@ -179,7 +180,7 @@ cdr_2_name="/dev/cdrom1"
floppya="FALSE"
floppyb="FALSE"
# place for the virtual floppy "B:"
-floppybname="/etc/vmware/loopimg/fd1.img"
+floppybname="/etc/vmware/loopimg/fd.img"
# resolution
hostres=$(xvidtune -show 2>/dev/null| grep -ve "^$")
xres=$(echo "${hostres}" | awk '{print $3}')