2007-10-21 15:10:48 -07:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright (C) 2007 Richard Hughes <richard@hughsie.com>
|
|
|
|
# Licensed under the GNU General Public License Version 2
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
trap trap_quit QUIT
|
|
|
|
|
|
|
|
trap_quit ()
|
|
|
|
{
|
|
|
|
echo "Unlocking!"
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
time=0.30
|
|
|
|
|
|
|
|
echo "Locking!"
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t0"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t10"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t20"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t30"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t40"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t50"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t60"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t70"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t80"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t90"
|
2007-10-21 15:10:48 -07:00
|
|
|
sleep ${time}
|
2008-03-25 11:54:12 -07:00
|
|
|
echo -e "percentage\t100"
|
2007-10-21 15:10:48 -07:00
|
|
|
echo "Unlocking!"
|
|
|
|
|