341,7 → 341,7 |
echo "gammu is already started" |
else |
start_gammu |
sed -i "s/\$service_SMS_status=false;/\$service_SMS_status=true;/g" $index_page |
sed -i "s/\$service_SMS_status=\"false\";/\$service_SMS_status=\"true\";/g" $index_page |
sed -i "s/\$service_SMS_status=false;/\$service_SMS_status=true;/g" $public_page |
fi |
exit 0 |
351,7 → 351,7 |
if [ $gammu_pid != "0" ] |
then |
stop_gammu |
sed -i "s/\$service_SMS_status=true;/\$service_SMS_status=false;/g" $index_page |
sed -i "s/\$service_SMS_status=\"true\";/\$service_SMS_status=\"false\";/g" $index_page |
sed -i "s/\$service_SMS_status=true;/\$service_SMS_status=false;/g" $public_page |
else |
echo "gammu is already stopped" |