(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 27 Sep 2020, 23:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Express VPN wrapper script
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2806
Location: UK

PostPosted: Sat 21 Sep 2019, 19:02    Post subject:  Express VPN wrapper script
Subject description: fixes the .deb package provided by Express VPN
 

Express VPN wrapper script

* fixes the .deb package provided by Express VPN


Code:
#!/bin/ash
#
# a wrapper for expressvpn for Puppy Linux
#
# What is does:
# - makes tunnel device, /dev/net/tun, if needed
# - give start|stop|retart as $1
# - give location to connect to as $2
# - if $2 not given, defaults to "smart" location


mkdir -p /dev/net &>/dev/null
mknod /dev/net/tun c 10 200 &>/dev/null
chmod 666 /dev/net/tun

case "$1" in
  stop|disconnect)
    expressvpn disconnect
    ;;
  start|connect)
    (nohup expressvpnd &) 1>/dev/null
    expressvpn connect "${2:-smart}"
    ;;
  restart|reconnect)
    echo "Restarting daemon"
    expressvpn disconnect  && sleep 0.5
    killall -9 expressvpnd && sleep 1
    (nohup expressvpnd &) 1>/dev/null
    sleep 0.5
    expressvpn connect "${2:-smart}"
    ;;
  *)
    echo "Usage:

$(basename $0) start|stop|restart
"
esac

exit 0


_________________
Pkg, mdsh, Woofy, Akita, VLC-GTK, Search
Back to top
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 1202
Location: UK

PostPosted: Tue 01 Oct 2019, 12:24    Post subject:  

Hi sc0ttman,

Your post reminded me that I long ago made a pet for use with tun.
It may be of use to you and can be found here:
http://murga-linux.com/puppy/viewtopic.php?p=978652&search_id=1585510709#978652

Just tested that it still works in bionicpup64 8.0 having first installed Conky via Puppy Quickpet.

    conky-1.10.8-x86_64|Image viewer
    Conky_ppp0_tun_show-V1|Simple desktop display of IP address tun/ppp0/eth0/wlan0

_________________
Regards ETP

Kennels
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2003s ][ Queries: 11 (0.0610s) ][ GZIP on ]