summaryrefslogtreecommitdiff
path: root/src/etc/netplug/linkup.d/vyos-python-helper
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-16 19:51:12 +0200
committerGitHub <noreply@github.com>2023-08-16 19:51:12 +0200
commit65ea7cef9fe922581e286bc539c4dc1e223c9d32 (patch)
treec58c9f3392fb3289b36eeff15fb80cbdb0af52a9 /src/etc/netplug/linkup.d/vyos-python-helper
parent9cdc76fe5badcf44cf38ea82ed89332b32d9d62b (diff)
parent1ab8166a5481c184ded9abf8da48dd0d391c8ae3 (diff)
downloadvyos-1x-65ea7cef9fe922581e286bc539c4dc1e223c9d32.tar.gz
vyos-1x-65ea7cef9fe922581e286bc539c4dc1e223c9d32.zip
Merge pull request #2151 from c-po/netplug-t5476
netplug: T5476: rewrite dhclient helper from Perl -> Python
Diffstat (limited to 'src/etc/netplug/linkup.d/vyos-python-helper')
-rwxr-xr-xsrc/etc/netplug/linkup.d/vyos-python-helper4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/netplug/linkup.d/vyos-python-helper b/src/etc/netplug/linkup.d/vyos-python-helper
new file mode 100755
index 000000000..9c59c58ad
--- /dev/null
+++ b/src/etc/netplug/linkup.d/vyos-python-helper
@@ -0,0 +1,4 @@
+#!/bin/sh
+PYTHON3=$(which python3)
+# Call the real python script and forward commandline arguments
+$PYTHON3 /etc/netplug/vyos-netplug-dhcp-client "${@:1}"