[syslinux] tftpd-hpa: remap '/tftpboot/ncd4/foo' into 'ncd4/foo'
Geert Stappers
stappers at stappers.nl
Thu Jun 1 18:39:21 PDT 2006
Hello,
This about remapping in the HPA tftp server.
A client does request for '/tftpboot/ncd4/foo' which should be 'ncd4/foo'
I have created a remap file that looks now like this:
r tftpboot/ncd4/modshmx/login.hmx ncd4/modshmx/login.hmx
r tftpboot/ncd4/modshmx/setup.hmx ncd4/modshmx/setup.hmx
r tftpboot/ncd4/modshmx/term.hmx ncd4/modshmx/term.hmx
Because
r tftpboot/ncd4/\(.*\) ncd4/\1
did not work for me. The manual says:
The following escape sequences are recognized as part of the replace-
ment pattern:
\0 The entire string matched by the regex.
\1 to \9
The strings matched by each of the first nine parenthesized
subexpressions, \( ... \), of the regex pattern.
Does someone have a working example of '\1' replacemant?
Cheers
Geert Stappers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20060602/670a374c/attachment.sig>
More information about the Syslinux
mailing list