move from xbin to bin #33
This commit is contained in:
parent
b92136577a
commit
b34830702c
|
@ -10,7 +10,7 @@ for i in 1 2 3 4 5 6 7 8 9 10 11 12; do
|
||||||
ping -c 1 download.dnscrypt.info
|
ping -c 1 download.dnscrypt.info
|
||||||
if [[ $? == 0 ]];
|
if [[ $? == 0 ]];
|
||||||
then
|
then
|
||||||
$MODDIR/system/xbin/dnscrypt-proxy -config $MODDIR/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml &
|
$MODDIR/system/bin/dnscrypt-proxy -config $MODDIR/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml &
|
||||||
sleep 15
|
sleep 15
|
||||||
iptables -t nat -A OUTPUT -p tcp ! -d 9.9.9.9 --dport 53 -j DNAT --to-destination 127.0.0.1:5354
|
iptables -t nat -A OUTPUT -p tcp ! -d 9.9.9.9 --dport 53 -j DNAT --to-destination 127.0.0.1:5354
|
||||||
iptables -t nat -A OUTPUT -p udp ! -d 9.9.9.9 --dport 53 -j DNAT --to-destination 127.0.0.1:5354
|
iptables -t nat -A OUTPUT -p udp ! -d 9.9.9.9 --dport 53 -j DNAT --to-destination 127.0.0.1:5354
|
||||||
|
|
|
@ -160,14 +160,14 @@ on_install() {
|
||||||
unzip -o "$ZIP" 'config/*' 'binary/*' -d $TMPDIR 2>/dev/null
|
unzip -o "$ZIP" 'config/*' 'binary/*' -d $TMPDIR 2>/dev/null
|
||||||
|
|
||||||
ui_print "* Creating binary path"
|
ui_print "* Creating binary path"
|
||||||
mkdir -p $MODPATH/system/xbin 2>/dev/null
|
mkdir -p $MODPATH/system/bin 2>/dev/null
|
||||||
|
|
||||||
ui_print "* Creating config path"
|
ui_print "* Creating config path"
|
||||||
mkdir -p $MODPATH/system/etc/dnscrypt-proxy 2>/dev/null
|
mkdir -p $MODPATH/system/etc/dnscrypt-proxy 2>/dev/null
|
||||||
|
|
||||||
if [ -f "$BINARY_PATH" ]; then
|
if [ -f "$BINARY_PATH" ]; then
|
||||||
ui_print "* Copying binary for $ARCH"
|
ui_print "* Copying binary for $ARCH"
|
||||||
cp -af $BINARY_PATH $MODPATH/system/xbin/dnscrypt-proxy
|
cp -af $BINARY_PATH $MODPATH/system/bin/dnscrypt-proxy
|
||||||
else
|
else
|
||||||
abort "Binary file for $ARCH is missing!"
|
abort "Binary file for $ARCH is missing!"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue