What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Is there a minimal size the USB needs to be in order to run diversion properly?
https://diversion.ch/diversion/requirements.html
Do I need to format the USB stick or will the installer do that for me?
No, Diversion does no formatting.
As I have an ext HDD on my USB3 port, do I need to unplug this while installing diversion on the USB that I'll have attached to the USB2 port on the router?
No, you don't have to remove it. Just select the correct USB device to install Entware/Diversion to during the install process.
Will I need to do anything other than simply run the command that posted on the Diversion installation instructions?
Read what is says and select the appropriate action during the install. That's all.
 
Good afternoon all,

When I get home later I'll be completely formatting my 86U and installing the latest Merlin firmware on it.

My question or questions here are....

Is there a minimal size the USB needs to be in order to run diversion properly?
Do I need to format the USB stick or will the installer do that for me?
As I have an ext HDD on my USB3 port, do I need to unplug this while installing diversion on the USB that I'll have attached to the USB2 port on the router?
Will I need to do anything other than simply run the command that posted on the Diversion installation instructions?

Cheers all,

Nathan
I just read in another post of yours that ypu are using Download master. If this is installed through the routers WebUI you will not be able to install Diversion at the same time. Diversion requires Entware and Entware is not compatible with the version that Asus uses to install Download master.
 
@thelonelycoder Today when updating Diversion pixelserv was off, I did the update but update couldn't restart pixelserv.

Last time it happened I did a full reinstall of amtm, diversion, but now it happens again.
What can I do to start it and prevent to switch off?

I'm running 384.7_2 on RT-AC88U

Thanks!

PS: If my router is using no more than 30% of RAM, do I need a swap file? Size suggested for best performance?

Sent from S.G. S9+ Duos
 
@thelonelycoder Today when updating Diversion pixelserv was off, I did the update but update couldn't restart pixelserv.

Last time it happened I did a full reinstall of amtm, diversion, but now it happens again.
What can I do to start it and prevent to switch off?

I'm running 384.7_2 on RT-AC88U

Thanks!

PS: If my router is using no more than 30% of RAM, do I need a swap file? Size suggested for best performance?

Sent from S.G. S9+ Duos
Post content of /opt/etc/init.d/S80pixelserv-tls, use sf to show the file.
 
Post content of /opt/etc/init.d/S80pixelserv-tls, use sf to show the file.

START FILE, --- lines are not part of file
---------------------------------------------------
#!/bin/sh
#bof

# Diversion is free to use under the GNU General Public License version 3 (GPL- 3.0)
# https://opensource.org/licenses/GPL-3.0

# Proudly coded by thelonelycoder
# Copyright (C) 2018 thelonelycoder - All Rights Reserved
# https://www.snbforums.com/members/thelonelycoder.25480/
# https://diversion.ch

# Script Version 4.0.4

# set environment PATH to system binaries
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH

if [ -f /opt/share/diversion/.conf/diversion.conf ]; then
. /opt/share/diversion/.conf/diversion.conf

if [ "$DIVERSION_STATUS" = "enabled" ] && [ "$psState" = "on" ]; then
switchesFile=/opt/share/diversion/.conf/pixelserv.switches
[ -f "$switchesFile" ] && switches=$(cat $switchesFile | tr '\n' ' ') || switches=

if [ -z "$1" ] || [ "$1" != "stop" ]; then
ifconfig br0:pixelserv-tls $psIP up
logger -t Diversion "created br0:pixelserv-tls $psIP, fr om $0"
fi

export TZ=$(cat /etc/TZ)
ENABLED=yes
PROCS=pixelserv-tls
ARGS="$psIP $switches"
PREARGS=""
PRECMD=""
DESC="$PROCS (Diversion)"
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/ bin:/usr/sbin:/usr/bin:/sbin:/bin
. /opt/etc/init.d/rc.func.div
else
logger -t Diversion "pixelserv-tls or Diversion disabled, not st arting pixelserv-tls, from $0"
fi
else
logger -t Diversion "diversion.conf file not found, not starting pixelse rv-tls, from $0"
fi
#eof
---------------------------------------------------
END FILE
 
START FILE, --- lines are not part of file
---------------------------------------------------
#!/bin/sh
#bof

# Diversion is free to use under the GNU General Public License version 3 (GPL- 3.0)
# https://opensource.org/licenses/GPL-3.0

# Proudly coded by thelonelycoder
# Copyright (C) 2018 thelonelycoder - All Rights Reserved
# https://www.snbforums.com/members/thelonelycoder.25480/
# https://diversion.ch

# Script Version 4.0.4

# set environment PATH to system binaries
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH

if [ -f /opt/share/diversion/.conf/diversion.conf ]; then
. /opt/share/diversion/.conf/diversion.conf

if [ "$DIVERSION_STATUS" = "enabled" ] && [ "$psState" = "on" ]; then
switchesFile=/opt/share/diversion/.conf/pixelserv.switches
[ -f "$switchesFile" ] && switches=$(cat $switchesFile | tr '\n' ' ') || switches=

if [ -z "$1" ] || [ "$1" != "stop" ]; then
ifconfig br0:pixelserv-tls $psIP up
logger -t Diversion "created br0:pixelserv-tls $psIP, fr om $0"
fi

export TZ=$(cat /etc/TZ)
ENABLED=yes
PROCS=pixelserv-tls
ARGS="$psIP $switches"
PREARGS=""
PRECMD=""
DESC="$PROCS (Diversion)"
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/ bin:/usr/sbin:/usr/bin:/sbin:/bin
. /opt/etc/init.d/rc.func.div
else
logger -t Diversion "pixelserv-tls or Diversion disabled, not st arting pixelserv-tls, from $0"
fi
else
logger -t Diversion "diversion.conf file not found, not starting pixelse rv-tls, from $0"
fi
#eof
---------------------------------------------------
END FILE
File looks good.
Anything of interest in the syslog when you restart pixelserv-tls in ep?
 
File looks good.
Anything of interest in the syslog when you restart pixelserv-tls in ep?
No, in fact if I go and select restart pixelserv I receive the message "pixelserv-tls restarted" but still off...

The only thing installed is amtm and diversion, but checking router's syslog shows flooded with:

Code:
Sep 26 16:44:11 kernel: EXT2-fs (sda1): error: ext2_free_blocks: Freeing blocks not in datazone - block = 4294967295, count = 1
and randomly appears some other block numbers from time to time

at the end of the log I get:

Code:
Nov  2 10:34:02 ovpn-server1[935]: event_wait : Interrupted system call (code=4)
May  5 02:05:05 kernel: pflash: found no supported devices
May  5 02:05:05 kernel: bcmsflash: found no supported devices
May  5 02:05:10 Mastiff: init
Nov  2 10:36:49 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov  2 10:36:49 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov  2 10:36:49 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov  2 10:37:29 crond[337]: time disparity of 261152 minutes detected
 
sWLTQfA.png

Diversion doesn't seem to be working. I'm seeing ads on all my devices. I'm using a VPN Client but it's set to "All" and clients are not routed. So there shouldn't be an issue as far as I'm aware.
 
No, in fact if I go and select restart pixelserv I receive the message "pixelserv-tls restarted" but still off...

The only thing installed is amtm and diversion, but checking router's syslog shows flooded with:

Code:
Sep 26 16:44:11 kernel: EXT2-fs (sda1): error: ext2_free_blocks: Freeing blocks not in datazone - block = 4294967295, count = 1
and randomly appears some other block numbers from time to time

at the end of the log I get:

Code:
Nov  2 10:34:02 ovpn-server1[935]: event_wait : Interrupted system call (code=4)
May  5 02:05:05 kernel: pflash: found no supported devices
May  5 02:05:05 kernel: bcmsflash: found no supported devices
May  5 02:05:10 Mastiff: init
Nov  2 10:36:49 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov  2 10:36:49 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov  2 10:36:49 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov  2 10:37:29 crond[337]: time disparity of 261152 minutes detected
This looks like a usb drive issue. sda1 is having issues with the kernel.
 
No, in fact if I go and select restart pixelserv I receive the message "pixelserv-tls restarted" but still off...
Looks like your device has errors. Use Google to find what it has to say about those errors. pixelserv might be in a part that is affected by that error.
 
sWLTQfA.png

Diversion doesn't seem to be working. I'm seeing ads on all my devices. I'm using a VPN Client but it's set to "All" and clients are not routed. So there shouldn't be an issue as far as I'm aware.
It used to work before for you. What changed?
 
It used to work before for you. What changed?

I'm not 100% sure but the old Swap File path won't delete. There is no Swap File but the path remains in the router and I cannot seem to delete it.


Sent from my iPhone using Tapatalk Pro
 
I'm not 100% sure but the old Swap File path won't delete. There is no Swap File but the path remains in the router and I cannot seem to delete it.


Sent from my iPhone using Tapatalk Pro
Use sf and post content of /jffs/scripts/post-mount
 
Use sf and post content of /jffs/scripts/post-mount

Code:
____________________________________________________

 /jffs/scripts/post-mount.div has this content:

 START FILE, --- lines are not part of file
 ---------------------------------------------------
 #!/bin/sh
 #bof
 
 # Diversion is free to use under the GNU General Public License version 3 (GPL-3.0)
 # https://opensource.org/licenses/GPL-3.0
 
 # Proudly coded by thelonelycoder
 # Copyright (C) 2018 thelonelycoder - All Rights Reserved
 # https://www.snbforums.com/members/thelonelycoder.25480/
 # https://diversion.ch
 
 # Script Version 4.0.3
 
 # set environment PATH to system binaries
 export PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
 
 OF="$(find $1/entware*/bin/opkg 2> /dev/null)"
 
 if [ "$OF" ]; then
        ln -nsf "$(echo "$OF" | sed 's~/bin/opkg~~g')" /tmp/opt
        /opt/etc/init.d/rc.unslung start $0
        logger -t Diversion "started Entware services, from $0"
        service restart_dnsmasq
        diversion ash_history
 fi
 #eof
 ---------------------------------------------------
 END FILE
 
@sentinelvdx Have you tried the disk checker in amtm?

I get this in the Disk Check
Code:
 Fri Nov  2 10:36:51 GMT 2018 Starting 'fatfsck -a /dev/sda1'
 fatfsck 3014.9.11
 Checking boot region...
 Error: Not a FAT volume - Invalid end of sector signature: 0x0
 Floating point exception

The USB drive is in EXT2 format as requested, I did it with Partition Tool on Windows

I'm planning to hard reset and start from scratch. about the USB does it works with FAT or only in ext2?
 
Last edited:
Code:
____________________________________________________

 /jffs/scripts/post-mount.div has this content:

 START FILE, --- lines are not part of file
 ---------------------------------------------------
 #!/bin/sh
 #bof
 
 # Diversion is free to use under the GNU General Public License version 3 (GPL-3.0)
 # https://opensource.org/licenses/GPL-3.0
 
 # Proudly coded by thelonelycoder
 # Copyright (C) 2018 thelonelycoder - All Rights Reserved
 # https://www.snbforums.com/members/thelonelycoder.25480/
 # https://diversion.ch
 
 # Script Version 4.0.3
 
 # set environment PATH to system binaries
 export PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
 
 OF="$(find $1/entware*/bin/opkg 2> /dev/null)"
 
 if [ "$OF" ]; then
        ln -nsf "$(echo "$OF" | sed 's~/bin/opkg~~g')" /tmp/opt
        /opt/etc/init.d/rc.unslung start $0
        logger -t Diversion "started Entware services, from $0"
        service restart_dnsmasq
        diversion ash_history
 fi
 #eof
 ---------------------------------------------------
 END FILE
post-mount, not post-mount.div
I know what my file looks like...
 
I get this in the Disk Check
Code:
 Fri Nov  2 10:36:51 GMT 2018 Starting 'fatfsck -a /dev/sda1'
 fatfsck 3014.9.11
 Checking boot region...
 Error: Not a FAT volume - Invalid end of sector signature: 0x0
 Floating point exception

The USB drive is in EXT2 format as requested, I did it with Partition Tool on Windows

I'm planning to hard reset and start from scratch. about the USB does it works with FAT or only in ext2?
Yeah, the way it is formatted is not compatible with disk checker.
I use an actual Linux system to format/partition my devices.
 
Yeah, the way it is formatted is not compatible with disk checker.
I use an actual Linux system to format/partition my devices.
Ok, I'll format it back into FAT and reinstall it
 
post-mount, not post-mount.div
I know what my file looks like...

Argh damn sorry, mixed that up.

Code:
____________________________________________________

 /jffs/scripts/post-mount has this content:

 START FILE, --- lines are not part of file
 ---------------------------------------------------
 #!/bin/sh
 . /jffs/scripts/post-mount.div # Added by Diversion
 swapon /tmp/mnt/RT-AC68U/myswap.swp # Swap file created by Diversion
 ---------------------------------------------------
 END FILE
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top