This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#encoding=utf8 | |
function logecho(){ | |
#若不需要记录日志注销下行。 | |
echo "$*" >> ${logfile} | |
echo "$*" | |
} | |
function ddnspod(){ | |
# Usage: ddnspod [subdomain] [domain] | |
if [ $# == 2 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#encoding=utf8 | |
rootpath="/root" | |
openwrtpath=$rootpath"/files/openwrt/OpenWrt-SDK-15.05.1-ar71xx-nand_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/" | |
cd $rootpath | |
date | |
function Updatemotd(){ | |
apt update 2>&1 | sed -n '$p' > /etc/motd | |
RESULT=`certbot renew | grep "No renewals were attempted."` | |
if [ "$RESULT" == "No renewals were attempted." ] |
NewerOlder