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!

My concern was the 'e' option didn't exit the install.
The e option would have exited the installer just fine. It cleans up the temporary files while doing so.
Nothing Diversion related should be left on the router if the install is aborted at this time.
 
The e option would have exited the installer just fine. It cleans up the temporary files while doing so.
Nothing Diversion related should be left on the router if the install is aborted at this time.

If you look at the screen shot he posted, it looks like he was stuck in a loop. e didn't work as expected. o_O
 
That's a wrongly formatted device. Use real Linux/Unix system to format the device.
I booted into GParted to format the device to EXT2 and everything but your script detects it as EXT2. Also, your script definitely has a memory leak somewhere or some logging ( stored in memory? ) that just keeps getting larger and larger. My freezing issue is gone but my ram usage has increased nearly 15% over the past week and getting larger and larger. Do you have a list of all settings related to logging?
 
Does this mean that I did it right and how does it get enabled after install? At boot up? After this post, I just enabled 'logging' so I can see if it's working.
upload_2019-1-2_13-58-30.png
upload_2019-1-2_13-58-48.png
 
Does this mean that I did it right and how does it get enabled after install? At boot up? After this post, I just enabled 'logging' so I can see if it's working.
View attachment 15675View attachment 15676
I would suggest you enable logging as a first-time user, since you may have some whitelisting to do early on.

To verify pixelserv, browse to http://192.168.1.2/servstats to see if it's up and listening for requests. The stats can be intimidating, so don't sweat them too much, just check that the uptime, requests (req) are increasing as you browse the web.
 
Had to type 'ac' to get the stats to come up. So, I guess it's working now?
upload_2019-1-2_14-32-55.png
 
Does this mean that I did it right and how does it get enabled after install? At boot up? After this post, I just enabled 'logging' so I can see if it's working.
It's installed, active (Diversion Standard enabled) and it will be started automatically when the router boots.
The ads counter in the header only update daily at 5:20 and 17:20 automatically. To manually update them use ac, as you've found out. Or enable auto-update whenever the UI is opened. This option can be seen when expanding the menu with o.
 
It's installed, active (Diversion Standard enabled) and it will be started automatically when the router boots.
The ads counter in the header only update daily at 5:20 and 17:20 automatically. To manually update them use ac, as you've found out. Or enable auto-update whenever the UI is opened. This option can be seen when expanding the menu with o.
I can actually see it working, just by going to the digitalhome.ca forums. Before I would get blasted with ads and now, nothing. :)
It's an amazing little program! Glad I installed it.
 
@thelonelycoder - Is there any reason I should lose my working diversion install on a router (AC-86U) reboot? Am I missing a step?
Post the content of /jffs/scripts/post-conf. Use sf to show the file.
 
My bad, the post-mount is of interest.
cat /jffs/scripts/post-mount
rob@RT-AC1900P-3838:/tmp/home/root# cat /jffs/scripts/post-mount
#!/bin/sh
swapon /tmp/mnt/USBStick/myswap.swp # Skynet Firewall Addition
. /jffs/scripts/post-mount.div # Added by Diversion
 
Can you post contents of post-mount.div and post-mount please?
rob@RT-AC1900P-3838:/tmp/home/root# cat /jffs/scripts/post-mount.div
#!/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.6

# 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
rob@RT-AC1900P-3838:/tmp/home/root#
 
rob@RT-AC1900P-3838:/tmp/home/root# cat /jffs/scripts/post-mount
#!/bin/sh
swapon /tmp/mnt/USBStick/myswap.swp # Skynet Firewall Addition
. /jffs/scripts/post-mount.div # Added by Diversion
Looks good.
Is the USB device still plugged in and is "Enable JFFS custom scripts and configs" still set to Yes in Administration/System?
 

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