From 572f3cfeedc2f550a7575cb830d53cb09dc8e9e6 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 19 Jul 2007 16:32:26 +0000 Subject: 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 --- initramfs/initrd-stuff/init | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'initramfs/initrd-stuff/init') 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 -- cgit v1.2.3-55-g7522