summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff
diff options
context:
space:
mode:
authorOliver Tappe2006-08-21 13:37:53 +0200
committerOliver Tappe2006-08-21 13:37:53 +0200
commit2cc69c394e140fcac62015286f4ce088c3863bf6 (patch)
tree02a6033efa92fb07da9c8cd05582faba958c92b7 /initrd/initrd-stuff
parenturi format for automount and scratch (/tmp via nfs, ...), little fixes, (diff)
downloadcore-2cc69c394e140fcac62015286f4ce088c3863bf6.tar.gz
core-2cc69c394e140fcac62015286f4ce088c3863bf6.tar.xz
core-2cc69c394e140fcac62015286f4ce088c3863bf6.zip
* replaced all occurrences of 'opendiskless' with 'openslx'
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@320 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff')
-rwxr-xr-xinitrd/initrd-stuff/bin/servconfig26
-rwxr-xr-xinitrd/initrd-stuff/init42
2 files changed, 34 insertions, 34 deletions
diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig
index d3bbf8a4..28ae881f 100755
--- a/initrd/initrd-stuff/bin/servconfig
+++ b/initrd/initrd-stuff/bin/servconfig
@@ -2,16 +2,16 @@
#
# Description: universal (distro independent) configuration script
# for linux diskless clients (executed within initial
-# ramdisk)
+# ramdisk)
#
# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 20-08-2006
# Michael Janczyk <mj0>, 31-05-2006
-# Lars Mueller <lm@opendiskless.org>, 23-06-2006
-# Oliver Tappe <ot@opendiskless.org>, 23-06-2006
+# Lars Mueller <lm@openslx.org>, 23-06-2006
+# Oliver Tappe <ot@openslx.org>, 23-06-2006
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
-# (c) 2006 - opendiskless.org project
-#
+# (c) 2006 - openslx.org project
+#
# Version: 0.1.2c
# check for configuration files to source
@@ -59,14 +59,14 @@ echo "
">/mnt/etc/issue
#######################################################################
-# read and unify configuration options - default configuration file,
+# read and unify configuration options - default configuration file,
# from dhcp, ldap ...
# wait for the appearance of configuration from several sources
cfgcomplete
. /etc/machine-setup
# copy additional configuration and var files and directories
-# admins can place there files in /var/lib/opendiskless/config/...
+# admins can place there files in /var/lib/openslx/config/...
# to be packed during stage2 into (/srv/dxs)/tftpboot/client-config...)
# ... in the near future ...
cp -a /rootfs/* /mnt 2>/dev/null
@@ -97,7 +97,7 @@ if [ "x$vmware" != "x" ] && [ "x$vmware" != "xno" ] ; then
esac
fi
fi
-
+
#######################################################################
# set localization
if [ -z "$country" ] ; then
@@ -145,13 +145,13 @@ test -n "$domain_name_servers" && {
initial_boot
#######################################################################
-#
+#
# run distro specific configuration function
config_distro
#######################################################################
-#
+#
# boot.local
if [ -n "$bootlocal_script" ]; then
echo -e "# entries added by $0:\n#\t$date\n\n\
@@ -164,7 +164,7 @@ fi
# at daemon - calling distro specific function config_atd
config_atd
-# configuration of cron services - calling distro specific function
+# configuration of cron services - calling distro specific function
# config_cron (runlevel links, directories, ...)
config_cron
[ "x$crontab_entries" != "x" ] && \
@@ -384,7 +384,7 @@ if [ "x$start_x" != "xno" ] ; then
echo -e "# /etc/X11/xdm/Xaccess - file generated by $0: \
$date\n*\n%hostlist\t$x_display_manager\n*\t\tCHOOSER %hostlist"\
>/mnt/etc/X11/xdm/Xaccess
-
+
# define type of X session
dsx="no"
init="#7:5:respawn:/usr/X11R6/bin/X vt7 -quiet"
@@ -430,7 +430,7 @@ $start_x -- vt7 -quiet' -l nobody &>/dev/null\nrm /var/run/kiosk\n\
resmgr revoke nobody\nresmgr logout tty7\nkillall X" \
>/mnt/var/X11R6/bin/kiosk
# early start of kiosk session if not late_dm is set
- if [ "x$late_dm" != "xyes" ] ; then
+ if [ "x$late_dm" != "xyes" ] ; then
echo -e "\t# kiosk start added by $0\n\t\
/var/X11R6/bin/kiosk &>/dev/null &" >>/mnt/etc/${D_INITDIR}/boot.ld
fi
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index d9de24f1..f36913ff 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -1,11 +1,11 @@
#!/bin/sh
# Description: main script for new type of initial ramdisk for
-# linux diskless clients version 4
+# linux diskless clients version 4
#
# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 15-08-2006
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
-# (c) 2006 - opendiskless.org project
+# (c) 2006 - openslx.org project
#
# Version: 0.2.6e
@@ -54,7 +54,7 @@ RWDIR=/dev/shm
NFSRO="nfs"
# run pre init script and user defined preinit.local, copied by mkdxsinitrd
-# from /var/lib/opendiskless/config/... in stage2
+# from /var/lib/openslx/config/... in stage2
preinit
[ -x /bin/preinit.local ] && /bin/preinit.local
@@ -102,9 +102,9 @@ in $0\ncountry=\"${COUNTRY}\"" >> /etc/machine-setup
LDAP="yes"
rm /tmp/ldap-done
;;
- # if (external, via tftp) configuration file retrieval should
+ # if (external, via tftp) configuration file retrieval should
# be triggered, if no source is given try dhcp server and
- # predefined standard path (~/tftpboot/client-conf/default,
+ # predefined standard path (~/tftpboot/client-conf/default,
# client-conf/<name-of-export>/default, ...)
file)
FILE="yes"
@@ -127,7 +127,7 @@ in $0\ncountry=\"${COUNTRY}\"" >> /etc/machine-setup
# if unionfs should be used over the complete root filesystem
unionfs)
UNIONFS=1;;
- # if cowloop should be used, only ontop of network block device and in
+ # if cowloop should be used, only ontop of network block device and in
# combination with classical fs, like ext2 useful
cowloop=*)
COWLOOP=1
@@ -169,7 +169,7 @@ if [ -z "$DHCP" -a -z "$LDAP" -a -z "$IPINFO" ] ; then
echo -e "# You did not specify any advanced configuration mode for your \
clients. You\n# might want to add the token 'dhcp' for DHCP configuration, \
'file(=source)'\n# for config file get via TFTP or 'ldap(=source)' for LDAP \
-configuration to\n# your kernel command line." >> /etc/machine-setup
+configuration to\n# your kernel command line." >> /etc/machine-setup
if strinfile "clientip" /etc/machine-setup ; then
# IP configuration seems to be present in machine-setup file
. /etc/machine-setup
@@ -191,7 +191,7 @@ if [ "${DEBUGLEVEL}" -gt 0 ] ; then
LOGFILE="/var/log/dxs-boot.log"
echo "1 4 1 7" >/proc/sys/kernel/printk
[ "${DEBUGLEVEL}" -ge 2 ] && MODPRV="-v"
- [ "${DEBUGLEVEL}" -gt 3 ] && {
+ [ "${DEBUGLEVEL}" -gt 3 ] && {
set -x
# and the kernel too
echo "7 7 7 7" >/proc/sys/kernel/printk; }
@@ -212,11 +212,11 @@ ipsetup 127.0.0.1 255.0.0.0 0.0.0.0 127.255.255.255 lo
# analyze ip information from the kernel command line and put parts
# of it into several variables
if [ -n "$IPINFO" ] ; then
- getip () {
- val=$IPINFO; i=$(expr $1 - 1);
- while [ $i -gt 0 ] ; do
- val=${val#*:} ; i=$(expr $i - 1);
- done;
+ getip () {
+ val=$IPINFO; i=$(expr $1 - 1);
+ while [ $i -gt 0 ] ; do
+ val=${val#*:} ; i=$(expr $i - 1);
+ done;
echo $val|sed "s/:.*//"; }
clientip=$(getip 1)
serverip=$(getip 2)
@@ -246,7 +246,7 @@ fi
# ... or via tftp file get (in background)
[ -n "$FILE" ] && fileget &
-# if root filesystem should be imported via (d) network block device
+# if root filesystem should be imported via (d) network block device
if [ -n "${NBD}" ] ; then
# load block device driver if needed
modprobe ${MODPRV} ${NBD} || error "$init_errnbd"
@@ -311,7 +311,7 @@ if [ -n "${NBD}" ] ; then
ldcfg
else
# use normal UnionFS behaviour because rootfs is not NFS
- NFSRO=""
+ NFSRO=""
fi
# finally mount the block device
for i in 5 40 60 ; do
@@ -344,8 +344,8 @@ hwautocfg &
# try to use unionfs for rw access if available
if [ -n "${UNIONFS}" -o -n "${UNION}" ] ; then
- modprobe ${MODPRV} unionfs || {
- error "$init_loadufs" nonfatal
+ modprobe ${MODPRV} unionfs || {
+ error "$init_loadufs" nonfatal
UNIONFS=""; }
fi
@@ -367,7 +367,7 @@ if [ -n "${UNIONFS}" ] ; then
if [ -n "${UNION}" ] ; then
# for dir in "${UNION}"; do
# testmkd /unionadd/$dir
- # mount $dir unionadd/$dir
+ # mount $dir unionadd/$dir
# unionctl mnt --add --after /mnt --mode ro /unionadd/$dir
# most probably it is a good idea to run ldconfig, so enable it
unset NOLDSC
@@ -427,7 +427,7 @@ for linux diskless client specific debugging output\nLOGFILE=\"$LOGFILE\"\n#\
\n# debug level\nDEBUGLEVEL=\"$DEBUGLEVEL\"" \
> /mnt/etc/${D_SYSCONFDIR}/logfile || error "$init_errlog"
-# run distribution independent and dependent configuration of files and
+# run distribution independent and dependent configuration of files and
# services
servconfig &
@@ -450,14 +450,14 @@ echo -e "rootfs / rootfs rw 0 0\ninitramdevs /dev tmpfs rw\
0 0" > /mnt/etc/mtab
[ -z "$UNIONFS" ] && echo -e "ramfs /tmp tmpfs rw 0 0\nramfs /root \
tmpfs rw 0 0\n" >> /mnt/etc/mtab
-
+
# copy library cache if generated
if [ -z "${NOLDSC}" ] ; then
if waitfor /tmp/ldcfg 50000 ; then
test -s /mnt/tmp/ld.so.cache && {
cp /mnt/tmp/ld.so.cache /mnt/etc/ld.so.cache
rm /mnt/tmp/ld.so.cache; }
- else
+ else
error "$init_errldcfg"
fi
else