diff options
author | Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> | 2014-01-13 09:37:45 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-01-13 09:37:45 +0000 |
commit | c54ce2e0fd25d79f5343792c1c620fecdc3b03bc (patch) | |
tree | b687c0ba88f17466dd9bce59fcc6155f60ade5a7 /tests/family-ipv4 | |
parent | b566123b9b60aff8ef21dfa7b21f817261236b1d (diff) |
files: replace interpreter during installation
Many systems (for example Debian) don't recognice `#!nft -f' as a
valid interpreter.
A short way to handle this is to provide the full path to the interpreter
in the shebang.
That is what this patch does: update the shebang's path during installation.
For example, if you are installing under /usr/local, the shebang becomes:
#!/usr/local/sbin/nft -f
If using --prefix=/, then:
#!/sbin/nft -f
NOTE: If the shebang in source files are changed in a future, this sed script
should be updated as well.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'tests/family-ipv4')
0 files changed, 0 insertions, 0 deletions