]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: pass on # comments to {Pre,Post}{Up,Down}
authorRobyn Kosching <robyn@kosching.me>
Wed, 15 Jan 2025 11:33:50 +0000 (12:33 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 23 May 2025 18:43:30 +0000 (20:43 +0200)
commit90deacd33da06534ee98d41c6e76e108b35cf077
tree03a60d01cdecf85b62b362310b061a3cb0186a85
parent780182e37d2b5981171766b8f31bcefd64da7a43
wg-quick: pass on # comments to {Pre,Post}{Up,Down}

Currently commands in {Pre,Post}{Up,Down} are stripped of everything
starting with the first #, even if the # is escaped or in a string. This
patch leaves comment interpretation to the shell, as it can presumably
already handle the difference between comments and escaped #.

Signed-off-by: Robyn Kosching <robyn@kosching.me>
[Jason: massage commit message, port to other platforms]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/darwin.bash
src/wg-quick/freebsd.bash
src/wg-quick/linux.bash
src/wg-quick/openbsd.bash