|
@@ -386,11 +386,24 @@ function argument_checks {
|
386
|
386
|
exit 2
|
387
|
387
|
fi
|
388
|
388
|
if [ ! $MY_USERNAME ]; then
|
389
|
|
- show_help
|
390
|
|
- exit 3
|
|
389
|
+ if [[ $DOMAIN_NAME == "tor-wifi" || $DOMAIN_NAME == "torwifi" || $DOMAIN_NAME == "tor-hotspot" || $DOMAIN_NAME == "torhotspot" || $DOMAIN_NAME == "tor-access-point" || $DOMAIN_NAME == "tor" || $DOMAIN_NAME == "tor-dongle" || $DOMAIN_NAME == "tordongle" ]]; then
|
|
390
|
+ if [ -d /home/tor ]; then
|
|
391
|
+ $MY_USERNAME="tor"
|
|
392
|
+ fi
|
|
393
|
+ if [ -d /home/toruser ]; then
|
|
394
|
+ $MY_USERNAME="toruser"
|
|
395
|
+ fi
|
|
396
|
+ if [ ! $MY_USERNAME ]; then
|
|
397
|
+ show_help
|
|
398
|
+ exit 3
|
|
399
|
+ fi
|
|
400
|
+ else
|
|
401
|
+ show_help
|
|
402
|
+ exit 3
|
|
403
|
+ fi
|
391
|
404
|
fi
|
392
|
405
|
if [ ! $FREEDNS_SUBDOMAIN_CODE ]; then
|
393
|
|
- if [[ $DOMAIN_NAME == "tor-wifi" || $DOMAIN_NAME == "torwifi" ]]; then
|
|
406
|
+ if [[ $DOMAIN_NAME == "tor-wifi" || $DOMAIN_NAME == "torwifi" || $DOMAIN_NAME == "tor-hotspot" || $DOMAIN_NAME == "torhotspot" || $DOMAIN_NAME == "tor-access-point"]]; then
|
394
|
407
|
DOMAIN_NAME="tor-wifi"
|
395
|
408
|
SYSTEM_TYPE=$VARIANT_TOR_WIFI
|
396
|
409
|
ROUTE_THROUGH_TOR="yes"
|