博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
AOSP在MAC环境在编译
阅读量:6907 次
发布时间:2019-06-27

本文共 850 字,大约阅读时间需要 2 分钟。

hot3.png

MAC环境下VPN重连脚本:

on idletell application "System Events"tell current location of network preferencesset myConnection to the service "VIP-TW -P"if myConnection is not null thenif current configuration of myConnection is not connected thenconnect myConnectionend ifend ifend tellreturn 10end tellend idle

140639_Qc04_2433273.png140538_L40h_2433273.png

Linux环境下VPN重连脚本:

#!/bin/bash connect="5"while [ "true" ] do     VPNCON=$(nmcli con show uuid 117fcee0-d5b5-4964-9025-bef5efe9053f | grep VPN.VPN-STATE | awk '{print $2}')	    echo $VPNCON    	    if [ "$VPNCON" != "$connect" ];then     echo "Disconnected, trying to reconnect..."         	        (sleep 1s && nmcli con up uuid 117fcee0-d5b5-4964-9025-bef5efe9053f)         else          echo "Already connected !"     	    fi     sleep 5	done

repo 断点续传脚本:

$?=1while [ $? -ne 0 ] ;do  repo sync ;done

转载于:https://my.oschina.net/fonddream/blog/517073

你可能感兴趣的文章
RPM包制作
查看>>
objective-C中的description方法
查看>>
gzip文件内存解压后处理,再保存到文件
查看>>
Java 技巧
查看>>
Minor GC、Major GC和Full GC之间的区别-JVM
查看>>
jsp request 对象详解
查看>>
非标准C语言扩展函数实现进制转换
查看>>
thinkphp Tpl/User/index.html 用户首页模版
查看>>
Eclipse快捷键大全(转载)
查看>>
Linux消息队列原理与应用
查看>>
平衡二叉搜索树之AVL树
查看>>
XMPP的一些工作
查看>>
silverlight访问WebService遭遇跨域问题
查看>>
goldengate 原理图
查看>>
进阶-源码编译的相关知识
查看>>
wind7重装后修复ubuntu(wubi安装)
查看>>
Mysql 慢查询和慢查询日志分析
查看>>
tomcat与nginx的整合
查看>>
IIS是如何处理ASP.NET请求的
查看>>
HTTP错误大全
查看>>