summaryrefslogtreecommitdiffstats
path: root/system-config/examples/hooks/rm
diff options
context:
space:
mode:
Diffstat (limited to 'system-config/examples/hooks/rm')
-rwxr-xr-xsystem-config/examples/hooks/rm19
1 files changed, 19 insertions, 0 deletions
diff --git a/system-config/examples/hooks/rm b/system-config/examples/hooks/rm
new file mode 100755
index 0000000..a7ffbbf
--- /dev/null
+++ b/system-config/examples/hooks/rm
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+echo
+echo "live-config hook: rm"
+
+_FILENAME=""
+
+while [ "${_FILENAME}" != q ]
+do
+ echo
+ echo -n "Enter filename [q for quit]: "
+
+ read _FILENAME
+
+ if [ -n "${_FILENAME}" ]
+ then
+ rm -rf "${_FILENAME}"
+ fi
+done