summaryrefslogtreecommitdiffstats
path: root/system-config/examples/hooks/vi
diff options
context:
space:
mode:
Diffstat (limited to 'system-config/examples/hooks/vi')
-rwxr-xr-xsystem-config/examples/hooks/vi16
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