16,7 → 16,7 |
######################################### |
####### IDs DB ########################## |
u_db="radius" |
p_db="rectAE3BAWRJqQo7" |
p_db="password" |
######################################### |
######################################### |
|
405,31 → 405,27 |
# cat $config | grep logfile | cut -d ' ' -f3 |
# exit 0 |
# ;; |
--speed) |
# Get connection speed |
cat $config | grep ^connection | cut -d ' ' -f3 |
--connect) |
# display the com port speed |
cat $config | grep connection | cut -d ' ' -f3 |
exit 0 |
;; |
--replace_port) |
# modify the com port |
echo $2 |
sed -i "s?^port = .*?port = $2?g" $config |
sed -i "0,/^device =/ s?device =.*?device = $2?" $config2 |
exit 0 |
;; |
--replace_speed) |
# write the connection speed |
# modufy the com port speed |
sed -i "s/^connection = at.*/connection = at$2/g" $config |
sed -i "s/^connection = at.*/connection = at$2/g" $config2 |
sed -i "0,/^connection =/ s/connection =.*/connection = $2/" $config2 |
exit 0 |
;; |
--port) |
# Get connection speed |
cat $config | grep ^port | cut -d ' ' -f3 |
exit 0 |
;; |
--replace_port) |
# write the connection speed |
sed -i "s?^port =.*?port = $2?g" $config |
sed -i "s?^device = .*?device = $2?g" $config2 |
exit 0 |
;; |
--pin) |
# Récupère le code PIN (file de conf) |
cat $config | grep ^PIN | cut -d ' ' -f3 |
cat $config | grep PIN | cut -d ' ' -f3 |
exit 0 |
;; |
--replace_pin) |