Changes

Jump to navigation Jump to search
439 bytes added ,  09:41, 20 September 2017
Line 94: Line 94:  
     * ) echo "Elije y/n";;
 
     * ) echo "Elije y/n";;
 
esac
 
esac
 +
 +
#!/bin/bash
 +
# naclient <login|logout|status|guistatus> [-profile <profile name>] [ -user <user-name>] [-password  <password>]
 +
 +
 +
function start_vpn(){
 +
    naclient login -profile Multi-OS  -user xe54512 -password  *******
 +
}
 +
 +
 +
function stop_vpn(){
 +
    naclient logout
 +
}
 +
 +
function status_vpn(){
 +
    naclient status
 +
}
 +
 +
case $1 in
 +
    start ) start_vpn;;
 +
    stop ) stop_vpn;;
 +
    status ) status_vpn;;
 +
    * ) echo "Unknown command";;
 +
esac
 +
 
</source>
 
</source>
  

Navigation menu