2
0
mirror of https://github.com/gnu4cn/ccna60d.git synced 2024-05-21 04:55:00 +08:00

Remove something.

This commit is contained in:
gnu4cn 2019-11-01 08:26:53 +08:00
parent 1477a986e3
commit 27b15ee074
3 changed files with 0 additions and 50 deletions

View File

@ -1,27 +0,0 @@
#!/usr/bin/env bash
TRIES=4
push () {
git add .
git commit -m "$1"
push_success=0
push_tries=0
until [ ${push_success} -eq 1 ] || [ ${push_tries} -gt ${TRIES} ]
do
git push
if [ $? -eq 0 ]; then
push_success=1
fi;
push_tries=$((push_tries+1))
done
}
commit_msg=""
if [ "$1" == "" ]; then
echo "No commit -m string."
commit_msg="Daily update. `date "+%F %H:%M:%S"`"
push "${commit_msg}"
else
push "$1"
fi;

View File

@ -1,10 +0,0 @@
1. 安装OpenWRT.
2. opkg update; opkg install wget;
3. 上传 ss.
4. ln -s libpolar.so
5. git clone 配置文件,并移除 banner、shadow、uci-defaults
6. scp -r 配置文件
7. 修改/etc/shadowsocks.json
8. /etc/init.d/shadowsocks enable
9. /etc/init.d/dnsmask restart; /etc/init.d/shadowsocks restart
10. bingo

13
push.sh
View File

@ -1,13 +0,0 @@
#!/bin/bash
git add *
if [ "$1" = "" ]
then
echo "没有commit -m的输入请输入commit -m内容以[ENTER]结束:"
read msg
git commit -m "$msg"
git push
else
git commit -m "$1"
git push
fi