projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b580b2
)
Give full path to unconfigured tinc-up script.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 8 Dec 2013 20:31:50 +0000
(21:31 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 8 Dec 2013 20:31:50 +0000
(21:31 +0100)
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
a986af7
..
83efc93
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-1777,7
+1777,7
@@
static int cmd_init(int argc, char *argv[]) {
fprintf(stderr, "Could not create file %s: %s\n", filename, strerror(errno));
return 1;
}
fprintf(stderr, "Could not create file %s: %s\n", filename, strerror(errno));
return 1;
}
- fprintf(f, "#!/bin/sh\n\necho 'Unconfigured tinc-up script, please edit!'\n\n#ifconfig $INTERFACE <your vpn IP address> netmask <netmask of whole VPN>\n");
+ fprintf(f, "#!/bin/sh\n\necho 'Unconfigured tinc-up script, please edit
'$0'
!'\n\n#ifconfig $INTERFACE <your vpn IP address> netmask <netmask of whole VPN>\n");
fclose(f);
}
#endif
fclose(f);
}
#endif