Do you get an error when creating a swapfile?Plugged the drive into my laptop and it is already EXT2, I was hoping not to have to install anything else to create the swap file![]()
I can browse the files just fine so it works!Do you get an error when creating a swapfile?
fdisk -l | grep "\/dev\/sd"
	df -h
	Have you installed any additional entware packages, such as find? Post output ofI can browse the files just fine so it works!
=> Please enter the number designates your selection: 5
Info: This operation will install a swap file for your device
Info: You need an external USB storage to host this file
=> Do you want to install a swap file (512MB on ext filesystem partition)? [y/n]: y
find: unrecognized: -maxdepth
BusyBox v1.25.1 (2018-02-04 12:53:06 EST) multi-call binary.
Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]
Search for files and perform actions on them.
First failed action stops processing of current file.
Defaults: PATH is current directory, action is '-print'
-L,-follow Follow symlinks
-H ...on command line only
Actions:
! ACT Invert ACT's success/failure
ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2
ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2
Note: -a has higher priority than -o
-name PATTERN Match file name (w/o directory name) to PATTERN
-iname PATTERN Case insensitive -name
-mtime DAYS mtime is greater than (+N), less than (-N),
or exactly N days in the past
If none of the following actions is specified, -print is assumed
-print Print file name
-print0 Print file name, NUL terminated
-exec CMD ARG ; Run CMD with all instances of {} replaced by
file name. Fails if CMD exits with nonzero
*** Error: Unable to find any external USB storage
which find
	BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum`
echo ${#BLAH}
[ ${#BLAH} -eq 32 ] || echo BAM
[ `echo $BLAH|wc -c` -eq 32 ] || echo HAM
	admin@RT-AC56U-84E0:/tmp/mnt# BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum`
admin@RT-AC56U-84E0:/tmp/mnt# echo ${#BLAH}
267752
	Not sure what causes these errors. We have the same version of busybox only the timestamp is different.
Can you post the output of
Code:fdisk -l | grep "\/dev\/sd"
and of
Code:df -h
Have you installed any additional entware packages, such as find? Post output ofCode:which find
@thelonelycoder Something weird with the shell on AC86U. Can you send me the output of following commands:
On my AC56U it'sCode:BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum` echo ${#BLAH} [ ${#BLAH} -eq 32 ] || echo BAM [ `echo $BLAH|wc -c` -eq 32 ] || echo HAM
Code:admin@RT-AC56U-84E0:/tmp/mnt# BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum` admin@RT-AC56U-84E0:/tmp/mnt# echo ${#BLAH} 267752
Dunno why 267752 is not a number![]()
just for testing purposes, have u tried changing USB port? Or using other USB drive?I have a 16GB USB3 stick plugged in and working over the network, I deleted the partition and put a EXT3 on this time.
ASUSWRT-Merlin RT-AC68U 384.3-beta1 Sun Feb 4 17:53:07 UTC 2018
which findGoNz0@Access-Point:/tmp/home/root# which find
/usr/bin/find
GoNz0@Access-Point:/tmp/home/root# fdisk -l | grep "\/dev\/sd"
Disk /dev/sda: 7756 MB, 7756087296 bytes
/dev/sda1 * 1 943 7573280 c Win95 FAT32 (LBA)
GoNz0@Access-Point:/tmp/home/root# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 33.6M 33.6M 0 100% /
devtmpfs 124.8M 0 124.8M 0% /dev
tmpfs 124.9M 592.0K 124.3M 0% /tmp
/dev/mtdblock4 62.8M 1.8M 61.0M 3% /jffs
GoNz0@Access-Point:/tmp/home/root#
Nope nothing.
ASUSWRT-Merlin RT-AC68U 384.3-beta1 Sun Feb 4 17:53:07 UTC 2018
which findGoNz0@Access-Point:/tmp/home/root# which find
/usr/bin/find
I tried another port but at the end of the day the USB stick works fine on the router.just for testing purposes, have u tried changing USB port? Or using other USB drive?
Weird but have you tried the new script? It's updated.
BLAH=$(curl -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md)
echo ${#BLAH}
	@thelonelycoder Something weird with the shell on AC86U. Can you send me the output of following commands:
On my AC56U it'sCode:BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum` echo ${#BLAH} [ ${#BLAH} -eq 32 ] || echo BAM [ `echo $BLAH|wc -c` -eq 32 ] || echo HAM
Code:admin@RT-AC56U-84E0:/tmp/mnt# BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum` admin@RT-AC56U-84E0:/tmp/mnt# echo ${#BLAH} 267752
Dunno why 267752 is not a number![]()
user@RT-AC86U-AD60:/tmp/home/root# echo ${#BLAH}
<!267752
user@RT-AC86U-AD60:/tmp/home/root# [ ${#BLAH} -eq 32 ] || echo BAM
[: <!267752: bad number
BAM
user@RT-AC86U-AD60:/tmp/home/root# [ `echo $BLAH|wc -c` -eq 32 ] || echo HAM
HAM
	@thelonelycoder got the clue and fixed it already I hope. Can you try the new code, already uploaded.
 Info:  Detected ARMv8 architecture.
 Info:  JFFS custom scripts and configs are already enabled
 Info:  Choose what you want to do:
  1) Install dnscrypt-proxy
  2) Configure dnscrypt-proxy
  3) Configure timezone
  4) Install (P)RNG
  5) Install swap file
  q) Quit
 =>  Please enter the number designates your selection: 1
 Info:  This operation will install dnscrypt-proxy and related files (<6MB)
 Info:  to jffs, no other data will be changed.
 Info:  Also some start scripts will be installed/modified as required.
 =>  Do you want to install dnscrypt-proxy to /jffs [y/n]: y
 Info:  Downloading manager
 Info:  Downloading nonroot
 Info:  Downloading dnscrypt-proxy-linux_arm64-2.0.0.tar.gz
 Info:  Downloading public-resolvers.md
 Info:  Downloading public-resolvers.md.minisig
linux-arm64/
linux-arm64/dnscrypt-proxy
linux-arm64/LICENSE
linux-arm64/example-dnscrypt-proxy.toml
linux-arm64/example-blacklist.txt
linux-arm64/example-cloaking-rules.txt
linux-arm64/example-forwarding-rules.txt
 Info:  Configure dnsmasq.postconf file for dnscrypt
 Info:  Creating wan-start file
 Info:  Configure wan-start file for dnscrypt
 Info:  Configuring dnscrypt-proxy...
 =>  Do you want to use DNS server over IPv6 (yes only if your connection has IPv6) [y/n]: n
 Info:  Choose how your DNS servers are selected:
  1) Automatically
  2) Manually
 =>  Select your mode, [1-2]: 1
 =>  Use servers support the DNSCrypt protocol [y/n]: y
 =>  Use servers support the DNS-over-HTTPS protocol [y/n]: y
 =>  Use only servers support DNSSEC [y/n]: y
 =>  Use only servers that do not log user's queries [y/n]: y
 =>  Use only servers that do not filter result [y/n]: y
 Info:  Set a DNS server for initializing dnscrypt-proxy
 Info:  and router services (e.g. ntp) at boot
 =>  Default is 8.8.8.8:
 =>  Set log level, default is 2, 0 is the most verbose, [0-6]: 2
 =>  Do you want to redirect all DNS resolutions on your network through dnscrypt? [y/n]: y
 Info:  Configure firewall-start file for dnscrypt
 Info:  For dnscrypt-proxy version 2 to work reliably, you might also want to:
 Info:   - Add swap
 Info:   - Add a RNG
 Info:   - Set your timezone
 Info:  Operation completed. You can quit or continue
=====================================================
	curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum@thelonelycoder do you know why there's <! for ${#VAR} anyway on your router?

Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!