fix return statement of function which is 'echo'
This commit is contained in:
parent
cba3ba4b3b
commit
fba096cc82
|
@ -7,13 +7,12 @@ log_b="0";
|
||||||
|
|
||||||
|
|
||||||
# returns whether the computer has just booted a few minutes ago
|
# returns whether the computer has just booted a few minutes ago
|
||||||
booted(){
|
at_boot(){
|
||||||
# onboot=`echo "$(cut -d' ' -f1 /proc/uptime) > 1000;" | bc`;
|
echo "$(cut -d' ' -f1 /proc/uptime) > 1000;" | bc;
|
||||||
return echo "$(cut -d' ' -f1 /proc/uptime) > 1000;" | bc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# lock by default (if not just booted)
|
# lock by default (if not just booted)
|
||||||
if [ "$(booted)" -ne 1 ]; then
|
if [ "$(at_boot)" -ne 1 ]; then
|
||||||
rm "$unlock_f";
|
rm "$unlock_f";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue