diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-07-21 04:53:03 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-21 04:53:03 +0700 |
commit | b7d7af33789d5f98ec27f326668a6b16ff228678 (patch) | |
tree | 0ce2988b1ce9d970e8a34c6af45f5a78128cf70e /src/op_mode/show_configuration_files.sh | |
parent | 34f4d01d447c300e9dce824f822eae4b9cdbd705 (diff) | |
parent | 0c8e4605f19e7caa6fb7ccb7009bb21bb9c6cdbc (diff) | |
download | vyos-1x-b7d7af33789d5f98ec27f326668a6b16ff228678.tar.gz vyos-1x-b7d7af33789d5f98ec27f326668a6b16ff228678.zip |
Merge pull request #17 from runborg/current
T689: updated show host xml and fixed op_mode script names from last PR.
Diffstat (limited to 'src/op_mode/show_configuration_files.sh')
-rwxr-xr-x | src/op_mode/show_configuration_files.sh | 10 |
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) ;}' |