summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-09 14:08:54 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-09 14:08:54 +0200
commit68fbc0c20a2b1c92481a9028dd7d21970d4e997b (patch)
tree8414257f38b6564f3a0a4a4a714ec0fc95204010
parent8ba7cc7af7d6d305b9e48ff2b2ce70f722994c71 (diff)
downloadvyatta-cfg-68fbc0c20a2b1c92481a9028dd7d21970d4e997b.tar.gz
vyatta-cfg-68fbc0c20a2b1c92481a9028dd7d21970d4e997b.zip
T3816: Partial revert "Remove unused scripts."
This reverts parts of commit 5475f9ab0f9bc3f547491d6f2e2e441ea4ffed57.
-rw-r--r--Makefile.am3
-rw-r--r--debian/vyatta-cfg.install1
-rwxr-xr-xscripts/enumeration/existing-interfaces4
3 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 00813cd..477a73c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,6 +6,7 @@ initddir = /etc/init.d
logrotatedir = /etc/logrotate.d
defaultdir = /etc/default
etc_shell_leveldir = $(sysconfdir)/shell/level
+enumdir = $(datadir)/enumeration
if USE_UNIONFSFUSE
USE_UNIONFSFUSE = -DUSE_UNIONFSFUSE=1
@@ -136,6 +137,8 @@ share_perl5_DATA += lib/Vyatta/Interface.pm
share_perl5_DATA += lib/Vyatta/TypeChecker.pm
share_perl5_DATA += lib/Vyatta/ConfigOutput.pm
+enum_SCRIPTS = scripts/enumeration/existing-interfaces
+
default_DATA = etc/default/vyatta-cfg
default_DATA += etc/default/vyatta-load-boot
diff --git a/debian/vyatta-cfg.install b/debian/vyatta-cfg.install
index 57c9ec9..abbe975 100644
--- a/debian/vyatta-cfg.install
+++ b/debian/vyatta-cfg.install
@@ -1,4 +1,5 @@
etc
+opt/vyatta/share/enumeration
opt/vyatta/share/vyatta-cfg/functions
opt/vyatta/sbin
opt/vyatta/etc
diff --git a/scripts/enumeration/existing-interfaces b/scripts/enumeration/existing-interfaces
new file mode 100755
index 0000000..1defc22
--- /dev/null
+++ b/scripts/enumeration/existing-interfaces
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+ls /sys/class/net 2>/dev/null
+