This commit is contained in:
milisbir 2017-07-26 04:43:19 +03:00
parent 1c23f117ed
commit ede44578aa
1 changed files with 7 additions and 5 deletions

12
bin/mas
View File

@ -11,17 +11,19 @@ ayardosya="ayarlar/milisia_genel.conf"
noktadepo="noktalar"
nokta_adres="https://github.com/milisarge/$noktadepo"
aygit_ekle(){
mkdir -p /dev/net &&
mknod /dev/net/tun c 10 200 &&
chmod 0666 /dev/net/tun
}
[ ! -d $anayer ] && mkdir -p $anayer
[ ! -d $anayer/ayarlar ] && mkdir -p $anayer/ayarlar
[ ! -c /dev/net/tun ] && aygit_ekle
[ ! -f /usr/bin/$servis ] && mps kur $servisk
[ ! -f /usr/bin/json ] && json_kur
aygit_ekle(){
mkdir -p /dev/net &&
mknod /dev/net/tun c 10 200 &&
chmod 0666 /dev/net/tun
}
json_kur(){
curl -L https://github.com/trentm/json/raw/master/lib/json.js > /usr/bin/json && chmod +x /usr/bin/json