You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
549 B
28 lines
549 B
10 years ago
|
#!/bin/sh
|
||
|
|
||
|
##############################################################################
|
||
|
# Get the real directory, where is located executable file
|
||
|
case `uname` in
|
||
|
"FreeBSD" )
|
||
|
if [ $( readlink ${0} ) ]; then
|
||
|
RUNDIR=$( realpath $( dirname $( readlink ${0} ) ) )
|
||
|
else
|
||
|
RUNDIR=$( realpath $( dirname ${0} ) )
|
||
|
fi
|
||
|
;;
|
||
|
"Linux" )
|
||
|
RUNDIR=$( dirname $( readlink -f ${0} ) )
|
||
|
;;
|
||
|
esac
|
||
|
##############################################################################
|
||
|
|
||
|
INTERVAL=${1:-20}
|
||
|
|
||
|
cd ${RUNDIR}
|
||
|
|
||
|
sleep ${INTERVAL}
|
||
|
|
||
|
./system.sh
|
||
|
conky -c hdd.rc &
|
||
|
exit 0
|