summaryrefslogtreecommitdiff
path: root/scripts/progress-indicator
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-10-18 11:16:37 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-10-18 11:16:37 -0700
commitc38f1d8ace7ba12d05954ab3374f3bbea6c13d46 (patch)
treefc4824137889159bb3423a34fd02dbaadb104dc9 /scripts/progress-indicator
downloadvyatta-cfg-quagga-c38f1d8ace7ba12d05954ab3374f3bbea6c13d46.tar.gz
vyatta-cfg-quagga-c38f1d8ace7ba12d05954ab3374f3bbea6c13d46.zip
initial import of systel-level scripts from fairfield/xorp and
ofr-eureka/rl-system. (this is the "mess-with-your-system-config" package.)
Diffstat (limited to 'scripts/progress-indicator')
-rwxr-xr-xscripts/progress-indicator24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/progress-indicator b/scripts/progress-indicator
new file mode 100755
index 00000000..aa263b36
--- /dev/null
+++ b/scripts/progress-indicator
@@ -0,0 +1,24 @@
+#!/bin/sh
+# Propeller progress indicator
+FRAME="A"
+PID=$1
+
+touch "/tmp/pi.$PID"
+while [ -f "/tmp/pi.$PID" ];
+do
+ case $FRAME in
+ A) echo -n -e "\b"
+ echo -n '|'
+ FRAME=B;;
+ B) echo -n -e "\b"
+ echo -n '/'
+ FRAME=C;;
+ C) echo -n -e "\b"
+ echo -n '-'
+ FRAME=D;;
+ D) echo -n -e "\b"
+ echo -n '\'
+ FRAME=A;;
+ esac
+ sleep 1
+done