This is the script that I am using and the only thing that marks is [o: not found
#!/bin/bash
control=0
while [ $control != "1" ]; do
clear
service='ps awx | grep 'isc-dhcp-server'|grep -v grep |wc -l'
if [$service==0];then
estado="OFF"
else
estado="ON"
fi
echo -e "PANEL DE CONTROL \n"
echo -e "Estado ----->> $estado \n\n"
echo "1. ON server"
echo "2. OFF server"
echo -e "3. Salir \n"
case $opcion in
1)
service isc-dhcp-server start
sleep 5 ;;
2)
service isc-dhcp-server stop
sleep 5 ;;
3)
echo -e "\n"
control=1 ;;
esac
done
exit