diff options
Diffstat (limited to 'system-config/examples/hooks/cat')
-rwxr-xr-x | system-config/examples/hooks/cat | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/system-config/examples/hooks/cat b/system-config/examples/hooks/cat new file mode 100755 index 0000000..cee5cde --- /dev/null +++ b/system-config/examples/hooks/cat @@ -0,0 +1,26 @@ +#!/bin/sh + +echo +echo "live-config hook: cat" + +_FILENAME="" + +while [ "${_FILENAME}" != q ] +do + echo + echo -n "Enter filename [q for quit]: " + + read _FILENAME + + if [ -n "${_FILENAME}" ] + then + echo + echo "Begin: ${_FILENAME}" + echo "--------------------------------------------------------------------------------" + + cat "${_FILENAME}" + + echo "--------------------------------------------------------------------------------" + echo "End: ${_FILENAME}" + fi +done |