run.sh - conn - A script repository to manage connections in Linux.
 (HTM) git clone git://r-36.net/conn
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       run.sh (470B)
       ---
            1 #!/bin/sh
            2 
            3 . ../common.sh
            4 
            5 if isblocked "wwan";
            6 then
            7         if [ $DOUNBLOCK -eq 1 ];
            8         then
            9                 dounblock "wwan"
           10         else
           11                 syslog -s -t "wwan-init" "Your wwan device(s) seem to be"
           12                         "blocked. Please use rfkill to unblock them."
           13                 exit 1
           14         fi
           15 fi
           16 
           17 interface=$2
           18 [ -z "$2" ] && interface="ppp0"
           19 
           20 iffile="${WWANDIR}/${interface}-run.sh"
           21 
           22 [ ! -e $iffile ] && exit 1
           23 
           24 $iffile $1
           25 
           26 if [ "$1" = "-k" ] && [ $DOBLOCK -eq 1 ] && ! isblocked "wwan";
           27 then
           28         doblock "wwan"
           29         sleep 4
           30 fi
           31 
           32 exit $?
           33