[syslinux] tftpd-hpa: remap '/tftpboot/ncd4/foo' into 'ncd4/foo'

Geert Stappers stappers at stappers.nl
Fri Jun 2 03:59:40 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Jun 02, 2006 at 03:39:21AM +0200, Geert Stappers wrote:
> 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?
> 
After some sleep I tried

r tftpboot/ncd4/modshmx/\(.*\) ncd4/modshmx/\1

so there is no slash in the replacement, but it didn't help.

> Cheers
> Geert Stappers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFEgBocOSINbgwa/7sRArbiAJ0f/NpuHl+85S/n301GaqqZirqHWgCgwQrk
HQCXzaXec9172/V8Ol+BlHg=
=5GEg
-----END PGP SIGNATURE-----




More information about the Syslinux mailing list