summaryrefslogtreecommitdiff
path: root/src/op_mode/show-configuration-files.sh
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2018-06-08 09:47:59 +0200
committerRunar Borge <runar@borge.nu>2018-06-08 09:47:59 +0200
commit3399149b8b07fa74229939bc64a3e573191b237b (patch)
tree2fdff472b62b4860eedf7b5acf36961c7ccd804d /src/op_mode/show-configuration-files.sh
parentf1568230e946f2c0c2b364d8313a4c0563cdd926 (diff)
downloadvyos-1x-3399149b8b07fa74229939bc64a3e573191b237b.tar.gz
vyos-1x-3399149b8b07fa74229939bc64a3e573191b237b.zip
T689: Added missing show-configuration-files.sh wrappwe script
Diffstat (limited to 'src/op_mode/show-configuration-files.sh')
-rwxr-xr-xsrc/op_mode/show-configuration-files.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/op_mode/show-configuration-files.sh b/src/op_mode/show-configuration-files.sh
new file mode 100755
index 000000000..ad8e0747c
--- /dev/null
+++ b/src/op_mode/show-configuration-files.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Wrapper script for the show configuration files command
+find ${vyatta_sysconfdir}/config/ \
+ -type f \
+ -not -name ".*" \
+ -not -name "config.boot.*" \
+ -printf "%f\t(%Tc)\t%T@\n" \
+ | sort -r -k3 \
+ | awk -F"\t" '{printf ("%-20s\t%s\n", $1,$2) ;}'