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