summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-07-19 18:32:26 +0200
committerDirk von Suchodoletz2007-07-19 18:32:26 +0200
commit572f3cfeedc2f550a7575cb830d53cb09dc8e9e6 (patch)
treecc3c1ed05638fcbdd5417ff47c03705753a04185 /initramfs/initrd-stuff/init
parentMinor fixes ... (diff)
downloadcore-572f3cfeedc2f550a7575cb830d53cb09dc8e9e6.tar.gz
core-572f3cfeedc2f550a7575cb830d53cb09dc8e9e6.tar.xz
core-572f3cfeedc2f550a7575cb830d53cb09dc8e9e6.zip
Rewrite of tftp fileget - should be possible to use other servers than
serverip (next-server) ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1257 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-xinitramfs/initrd-stuff/init15
1 files changed, 11 insertions, 4 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index e3b64ceb..0e3ed439 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -139,7 +139,11 @@ in $0\ncountry=\"${COUNTRY}\"" >> /etc/machine-setup
# if configuration should not be gathered by dhcp client
nodhcp)
nodhcp="yes"
- echo "nodhcp" > /tmp/dhcp-done
+ echo "nodhcp" >/tmp/dhcp-done
+ ;;
+ nofile)
+ unset file
+ echo "nofile" >/tmp/file-done
;;
# if ldap configuration should be triggered
ldap)
@@ -152,9 +156,12 @@ in $0\ncountry=\"${COUNTRY}\"" >> /etc/machine-setup
rm /tmp/ldap-done
;;
# file source with tftp server and file location on the server
- file=*)
- file="yes"
- filesrc=${opts#file=}
+ file=*|file)
+ if [ "${opts}" != "file" ] ; then
+ fileprot=$(uri_token ${opts#file=} prot)
+ fileserv=$(uri_token ${opts#file=} server)
+ filepath=$(uri_token ${opts#file=} path)
+ fi
;;
# if ld.so.cache should be generated; should be switched on when composing
# rootfs from more than one source