Browse code

prompt for sc ul show added

Jiri Kuthan authored on 30/04/2003 11:07:21
Showing 1 changed files
... ...
@@ -324,7 +324,11 @@ usrloc() {
324 324
 			if [ $# -eq 2 ] ; then
325 325
 				fifo_cmd ul_show_contact $TABLE $2
326 326
 			elif [ $# -eq 1 ] ; then
327
-				fifo_cmd ul_dump
327
+				printf "Dumping all contacts may take long: are you sure you want to proceed? [Y|N] "
328
+				read answer
329
+				if [ "$answer" = "y" -o "$answer" = "Y" ] ; then
330
+					fifo_cmd ul_dump
331
+				fi
328 332
 			else
329 333
 				echo "wrong number of params for usrloc show"
330 334
 				usage