first commit
This commit is contained in:
0
hubic-sur-debian/.gitkeep
Normal file
0
hubic-sur-debian/.gitkeep
Normal file
17
hubic-sur-debian/hubic_conf.bash
Normal file
17
hubic-sur-debian/hubic_conf.bash
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Fichier temporaire contenant le mot de passe
|
||||
echo $2 > /tmp/hubic_passwd
|
||||
|
||||
# Export DBUS
|
||||
dbus-daemon --session --fork --print-address > /tmp/hubic.dbus
|
||||
export DBUS_SESSION_BUS_ADDRESS=`cat /tmp/hubic.dbus`
|
||||
|
||||
# Connexion
|
||||
hubic login --password_path=/tmp/hubic_passwd $1
|
||||
|
||||
# Suivi de l'activité d'hubic
|
||||
watch -n1 hubic status
|
||||
|
||||
# Supprimer le mot de passe en sortant
|
||||
rm /tmp/hubic_passwd
|
||||
11
hubic-sur-debian/hubic_start.bash
Normal file
11
hubic-sur-debian/hubic_start.bash
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Export DBUS
|
||||
dbus-daemon --session --fork --print-address > /tmp/hubic.dbus
|
||||
export DBUS_SESSION_BUS_ADDRESS=`cat /tmp/hubic.dbus`
|
||||
|
||||
# Démarrage de HubiC
|
||||
hubic start
|
||||
|
||||
# Monitoring continu
|
||||
watch -n1 hubic status
|
||||
Reference in New Issue
Block a user