From 32322960234c8ec91e0d42835a3ec5ee63305070 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 2 Feb 2019 11:00:00 +0100 Subject: Adding upstream version 20190202. Signed-off-by: Daniel Baumann --- system-config/examples/hooks/rm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 system-config/examples/hooks/rm (limited to 'system-config/examples/hooks/rm') 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 -- cgit v1.2.3