[syslinux] tftpd-hpa: remap '/tftpboot/ncd4/foo' into 'ncd4/foo'
stappers at stappers.nl
Thu Jun 1 18:39:21 PDT 2006
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
r tftpboot/ncd4/\(.*\) ncd4/\1
did not work for me. The manual says:
The following escape sequences are recognized as part of the replace-
\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?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Digital signature
More information about the Syslinux