diff options
| -rw-r--r-- | usr/src/boot/sys/boot/forth/support.4th | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr/src/boot/sys/boot/forth/support.4th b/usr/src/boot/sys/boot/forth/support.4th index 95848c5416..16b8a88846 100644 --- a/usr/src/boot/sys/boot/forth/support.4th +++ b/usr/src/boot/sys/boot/forth/support.4th @@ -1146,10 +1146,15 @@ string current_file_name_ref \ used to print the file name ; : scan_conf_dir ( -- addr len -1 | 0 ) - s" currdev" getenv dup -1 <> if - s" pxe0:" compare 0= if 0 exit then \ readdir does not work on tftp - else - drop + s" currdev" getenv -1 <> if + dup 3 \ we only need first 3 chars + s" pxe" compare 0= + swap 3 + s" net" compare 0= or if + s" boot.tftproot.server" getenv? if + 0 exit \ readdir does not work on tftp + then + then then ['] entries catch if |
