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
|
||||
booted(){
|
||||
# onboot=`echo "$(cut -d' ' -f1 /proc/uptime) > 1000;" | bc`;
|
||||
return echo "$(cut -d' ' -f1 /proc/uptime) > 1000;" | bc;
|
||||
at_boot(){
|
||||
echo "$(cut -d' ' -f1 /proc/uptime) > 1000;" | bc;
|
||||
}
|
||||
|
||||
# lock by default (if not just booted)
|
||||
if [ "$(booted)" -ne 1 ]; then
|
||||
if [ "$(at_boot)" -ne 1 ]; then
|
||||
rm "$unlock_f";
|
||||
fi;
|
||||
|
||||
|
|
Loading…
Reference in New Issue