This commit is contained in:
garywill 2021-08-22 09:27:49 +08:00
parent e5fc9efe48
commit c2b21bb391
2 changed files with 7 additions and 4 deletions

View File

@ -6,7 +6,6 @@ It wraps `iptables`, `dnsmasq` etc. stuff. Use in one command, restore in one co
[Buy me a coffee](https://github.com/garywill/receiving/blob/master/receiving_methods.md) [Buy me a coffee](https://github.com/garywill/receiving/blob/master/receiving_methods.md)
^\_^o自自o^_^
## Features ## Features
@ -358,7 +357,6 @@ Options:
[Buy me a coffee](https://github.com/garywill/receiving/blob/master/receiving_methods.md) , this project took me lots of time! [Buy me a coffee](https://github.com/garywill/receiving/blob/master/receiving_methods.md) , this project took me lots of time!
^\_^o自自o^_^
[打赏一个](https://github.com/garywill/receiving/blob/master/receiving_methods.md) [打赏一个](https://github.com/garywill/receiving/blob/master/receiving_methods.md)
@ -369,3 +367,8 @@ Options:
This script was forked from create\_ap. Now it's quite different from it. (See `history` branch for how I modified create_ap) This script was forked from create\_ap. Now it's quite different from it. (See `history` branch for how I modified create_ap)
There're some TO-DOs listed, at both above and in the code file. We'll appreciate your help. There're some TO-DOs listed, at both above and in the code file. We'll appreciate your help.
------------------
More of my projects: https://garywill.github.io

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# TODO: showing version (or git commit) on running # TODO: showing version (or git commit) on running
VERSION=0.6.0 VERSION=0.6.2
PROGNAME="$(basename $0)" PROGNAME="$(basename $0)"
export LC_ALL=C export LC_ALL=C
@ -1235,7 +1235,7 @@ init_conf_dirs() {
chmod 755 "$TMPDIR" 2>/dev/null chmod 755 "$TMPDIR" 2>/dev/null
cd "$TMPDIR" || die "Couldn't change directory to linux-router's temporary path" cd "$TMPDIR" || die "Couldn't change directory to linux-router's temporary path"
CONFDIR="$(mktemp -d $TMPDIR/lnxrouter.${TARGET_IFACE}.conf.XXX)" || die "Instance couldn't make config dir" # config dir for one instance CONFDIR="$(mktemp -d $TMPDIR/lnxrouter.${TARGET_IFACE}.conf.XXXXXX)" || die "Instance couldn't make config dir" # config dir for one instance
chmod 755 "$CONFDIR" chmod 755 "$CONFDIR"
#echo "Config dir: $CONFDIR" #echo "Config dir: $CONFDIR"
echo $$ > "$CONFDIR/pid" echo $$ > "$CONFDIR/pid"