summaryrefslogtreecommitdiffstats
path: root/system-config/examples/hooks/rm
blob: a7ffbbfb8828c79d68993e25bcf9fdb0f890e1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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