diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-18 11:16:37 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-18 11:16:37 -0700 |
commit | c38f1d8ace7ba12d05954ab3374f3bbea6c13d46 (patch) | |
tree | fc4824137889159bb3423a34fd02dbaadb104dc9 /scripts/progress-indicator | |
download | vyatta-cfg-system-c38f1d8ace7ba12d05954ab3374f3bbea6c13d46.tar.gz vyatta-cfg-system-c38f1d8ace7ba12d05954ab3374f3bbea6c13d46.zip |
initial import of systel-level scripts from fairfield/xorp andupstream
ofr-eureka/rl-system.
(this is the "mess-with-your-system-config" package.)
Diffstat (limited to 'scripts/progress-indicator')
-rwxr-xr-x | scripts/progress-indicator | 24 |
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 |