What's new

[Beta] AB-Solution 1.08-beta2 is out!

  • 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!

hmm, i tested this and never got working with pixelserv....maybe i forgot yet how to setup to working....

sent from Kodi 17 Krypton
Wait for the next beta release in a couple of days. I am on it.
 
Hi, nice job and thanks for tls support.
Anyway i am experiencing these errors:

Done.
+ logger AB-Solution updated hosts file and restarted dnsmasq
Existing /jffs/scripts/post-mount was replaced.
A Backup of the file is located at /tmp/mnt/ENTWARE/adblocking/backup
[: installed: unknown operand

The hosts file will update every Sunday @ 2:00 a.m.

ab-solution.sh: line 1: opkg: not found

Doing final checks if AB-Solution installed properly

checking /jffs/scripts/dnsmasq.postconf
OK, file found
OK, file looks good

checking /jffs/scripts/post-mount
OK, file found
OK, file looks good

checking ab_dnsmasq_postconf.sh
OK, file found
OK, file looks good

checking hosts-adblock
OK, file found
OK, file looks good

checking ab-solution.cfg
OK, file found
OK, file looks good

checking update-hosts.sh
OK, file found
OK, file looks good

--> Looking good, no problems found.

Any idea?
 
ran into a little issue, on 380.59 merlin, had to manually install entware-ng first to get entware to start. seems to be working so far.
Thx for the great work!

How did you install entware-ng ? I just ran ./usr/sbin/entware-setup.sh
 
Hi, nice job and thanks for tls support.
Anyway i am experiencing these errors:

Done.
+ logger AB-Solution updated hosts file and restarted dnsmasq
Existing /jffs/scripts/post-mount was replaced.
A Backup of the file is located at /tmp/mnt/ENTWARE/adblocking/backup
[: installed: unknown operand

The hosts file will update every Sunday @ 2:00 a.m.

ab-solution.sh: line 1: opkg: not found

Doing final checks if AB-Solution installed properly

checking /jffs/scripts/dnsmasq.postconf
OK, file found
OK, file looks good

checking /jffs/scripts/post-mount
OK, file found
OK, file looks good

checking ab_dnsmasq_postconf.sh
OK, file found
OK, file looks good

checking hosts-adblock
OK, file found
OK, file looks good

checking ab-solution.cfg
OK, file found
OK, file looks good

checking update-hosts.sh
OK, file found
OK, file looks good

--> Looking good, no problems found.

Any idea?
Thanks for the error report.
Entware was not installed, or not correctly for some reason. Therefore the command opkg was not available and the variable $psinstalled is empty because Entware is missing.
- What version asuswrt-merlin are you running?
- content of post-mount
- is entware in the root dir of your USB device?
 
How did you install entware-ng ? I just ran ./usr/sbin/entware-setup.sh
The entware-setup.sh in /usr/sbin/ and the one called the New Generation Entware-NG are the same.

I don't know why they did not make this obvious. Maybe @TeHashX or @ryzhov_al can explain it.

It's just confusing but the fact is, both scripts point to:
http://pkg.entware.net/binaries/

Check if you can reach http://pkg.entware.net or download one of the install scripts in the browser:
http://pkg.entware.net/binaries/armv7/installer/entware_install.sh
 
The entware-setup.sh in /usr/sbin/ and the one called the New Generation Entware-NG are the same.

I don't know why they did not make this obvious. Maybe @TeHashX or @ryzhov_al can explain it.

It's just confusing but the fact is, both scripts point to:
http://pkg.entware.net/binaries/

Check if you can reach http://pkg.entware.net or download one of the install scripts in the browser:
http://pkg.entware.net/binaries/armv7/installer/entware_install.sh

Hi, well i am also running ./usr/sbin/entware-setup.sh .
When i install it, it seems to work as long as i do a reboot.
Then my entware/opkg is gone/lost. I have no clue why.
Running XVRT/Merlin here on a r7000.
Stick is formatted ext3, entware install says:
"
admin@r7000:/# ./usr/sbin/entware-setup.sh
Info: This script will guide you through the Entware installation.
Info: Script modifies "entware" folder only on the chosen drive,
Info: no other data will be changed. Existing installation will be
Info: replaced with this one. Also some start scripts will be installed,
Info: the old ones will be saved on Entware partition with name
Info: like /tmp/mnt/sda1/jffs_scripts_backup.tgz

Info: Looking for available partitions...
[1] --> /tmp/mnt/opt
=> Please enter partition number or 0 to exit
[0-1]: 1
Info: /tmp/mnt/opt selected.

Info: Creating /tmp/mnt/opt/entware folder...
Info: Creating /tmp/opt symlink...
Info: Creating /jffs scripts backup...
tar: /jffs/scripts/*: No such file or directory
tar: error exit delayed from previous errors
Info: Modifying start scripts...
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
Info: Opkg package manager deployment..."
 
Hi, well i am also running ./usr/sbin/entware-setup.sh .
When i install it, it seems to work as long as i do a reboot.
Then my entware/opkg is gone/lost. I have no clue why.
Running XVRT/Merlin here on a r7000.
Stick is formatted ext3, entware install says:
"
admin@r7000:/# ./usr/sbin/entware-setup.sh
Info: This script will guide you through the Entware installation.
Info: Script modifies "entware" folder only on the chosen drive,
Info: no other data will be changed. Existing installation will be
Info: replaced with this one. Also some start scripts will be installed,
Info: the old ones will be saved on Entware partition with name
Info: like /tmp/mnt/sda1/jffs_scripts_backup.tgz

Info: Looking for available partitions...
[1] --> /tmp/mnt/opt
=> Please enter partition number or 0 to exit
[0-1]: 1
Info: /tmp/mnt/opt selected.

Info: Creating /tmp/mnt/opt/entware folder...
Info: Creating /tmp/opt symlink...
Info: Creating /jffs scripts backup...
tar: /jffs/scripts/*: No such file or directory
tar: error exit delayed from previous errors
Info: Modifying start scripts...
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
Info: Opkg package manager deployment..."
I am not the maintainer of that script. But it looks like it cant find the /jffs/scripts/ directory.
 
It's almost the same, the one on hqt.ro will alsi create a swap file and will force create /opt folder
I forgot about the swap file. It's not needed for my adblocker script.
Thanks for the clarification.
 
Then your router / firmware is somehow different than stock or RMerlin firmware.
Please post mount output

ASUSWRT-Merlin R7000 380.61-0 Fri Aug 5 04:58:49 UTC 2016
admin@r7000:/tmp/home/root#
admin@r7000:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=127756k,nr_inodes=31939,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock4 on /jffs type jffs2 (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /tmp/mnt/32GB_Lexar type tntfs (rw,nodev,relatime,uid=0,gid=0,umask=00,nls=utf8,min_prealloc_size=64k,max_prealloc_size=128M,readahead=1M,user_xattr,case_sensitive,nocache,fail_safe,hidden=show,dotfile=show,errors=continue,mft_zone_multiplier=1)
/dev/sda2 on /tmp/mnt/ENTWARE type ext3 (rw,nodev,relatime,errors=continue,user_xattr,barrier=0,data=ordered)
 
ASUSWRT-Merlin R7000 380.61-0 Fri Aug 5 04:58:49 UTC 2016
admin@r7000:/tmp/home/root#
admin@r7000:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=127756k,nr_inodes=31939,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock4 on /jffs type jffs2 (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /tmp/mnt/32GB_Lexar type tntfs (rw,nodev,relatime,uid=0,gid=0,umask=00,nls=utf8,min_prealloc_size=64k,max_prealloc_size=128M,readahead=1M,user_xattr,case_sensitive,nocache,fail_safe,hidden=show,dotfile=show,errors=continue,mft_zone_multiplier=1)
/dev/sda2 on /tmp/mnt/ENTWARE type ext3 (rw,nodev,relatime,errors=continue,user_xattr,barrier=0,data=ordered)
When you trying to install entware, script will look for mounted partition in /tmp/mnt
In your case found /tmp/mnt/opt but your mount output shows /tmp/mnt/ENTWARE
What's wrong?
Reboot router then post output from
mount
ls -l dev
ls -l /mnt
 
When you trying to install entware, script will look for mounted partition in /tmp/mnt
In your case found /tmp/mnt/opt but your mount output shows /tmp/mnt/ENTWARE
What's wrong?
Reboot router then post output from
mount
ls -l dev
ls -l /mnt
rebooted:

admin@r7000:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs
(rw,relatime,size=127756k,nr_inodes=31939,mode=75


5)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock4 on /jffs type jffs2 (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /tmp/mnt/32GB_Lexar type tntfs
(rw,nodev,relatime,uid=0,gid=0,umask


=00,nls=utf8,min_prealloc_size=64k,max_prealloc_size=128M,readahead=1M,user_xatt



r,case_sensitive,nocache,fail_safe,hidden=show,dotfile=show,errors=continue,mft_


zone_multiplier=1)
/dev/sda2 on /tmp/mnt/ENTWARE type ext3
(rw,nodev,relatime,errors=continue,user_


xattr,barrier=0,data=ordered)
admin@r7000:/tmp/home/root# ls -l dev
ls: dev: No such file or directory
admin@r7000:/tmp/home/root# ls -l /dev
crw-r--r-- 1 admin root 189, 129 Aug 1 2015 2-2
drwxr-xr-x 3 admin root 60 Aug 1 2015 bus
crw------- 1 admin root 5, 1 Aug 15 13:55 console
crw------- 1 admin root 10, 63 Jan 1 1970 cpu_dma_latency
brw-rw---- 1 admin root 90, 0 Jan 1 1970 device
crw-rw-rw- 1 admin root 1, 7 Jan 1 1970 full
crw------- 1 admin root 10, 229 Jan 1 1970 fuse
crw-rw---- 1 admin root 254, 0 Jan 1 1970 gpio
crw------- 1 admin root 1, 11 Jan 1 1970 kmsg
srw-rw-rw- 1 admin root 0 Aug 1 2015 log
brw------- 1 admin root 7, 0 Jan 1 1970 loop0
brw------- 1 admin root 7, 1 Jan 1 1970 loop1
brw------- 1 admin root 7, 2 Jan 1 1970 loop2
brw------- 1 admin root 7, 3 Jan 1 1970 loop3
brw------- 1 admin root 7, 4 Jan 1 1970 loop4
brw------- 1 admin root 7, 5 Jan 1 1970 loop5
brw------- 1 admin root 7, 6 Jan 1 1970 loop6
brw------- 1 admin root 7, 7 Jan 1 1970 loop7
crw------- 1 admin root 1, 1 Jan 1 1970 mem
crw------- 1 admin root 90, 0 Jan 1 1970 mtd0
crw------- 1 admin root 90, 1 Jan 1 1970 mtd0ro
crw------- 1 admin root 90, 2 Jan 1 1970 mtd1
crw------- 1 admin root 90, 3 Jan 1 1970 mtd1ro
crw------- 1 admin root 90, 4 Jan 1 1970 mtd2
crw------- 1 admin root 90, 5 Jan 1 1970 mtd2ro
crw------- 1 admin root 90, 6 Jan 1 1970 mtd3
crw------- 1 admin root 90, 7 Jan 1 1970 mtd3ro
crw------- 1 admin root 90, 8 Jan 1 1970 mtd4
crw------- 1 admin root 90, 9 Jan 1 1970 mtd4ro
crw------- 1 admin root 90, 10 Jan 1 1970 mtd5
crw------- 1 admin root 90, 11 Jan 1 1970 mtd5ro
brw------- 1 admin root 31, 0 Jan 1 1970 mtdblock0
brw------- 1 admin root 31, 1 Jan 1 1970 mtdblock1
brw------- 1 admin root 31, 2 Jan 1 1970 mtdblock2
brw------- 1 admin root 31, 3 Jan 1 1970 mtdblock3
brw------- 1 admin root 31, 4 Jan 1 1970 mtdblock4
brw------- 1 admin root 31, 5 Jan 1 1970 mtdblock5
crw------- 1 admin root 10, 62 Jan 1 1970 network_latency
crw------- 1 admin root 10, 61 Jan 1 1970 network_throughput
crw-rw-rw- 1 admin root 1, 3 Jan 1 1970 null
crw-rw-rw- 1 admin root 253, 0 Jan 1 1970 nvram
crw------- 1 admin root 1, 4 Jan 1 1970 port
crw------- 1 admin root 108, 0 Jan 1 1970 ppp
lrwxrwxrwx 1 admin root 8 Aug 1 2015 printers -> /dev/usb
crw-rw-rw- 1 admin root 5, 2 Aug 15 13:59 ptmx
drwxr-xr-x 2 admin root 0 Jan 1 1970 pts
brw------- 1 admin root 1, 0 Jan 1 1970 ram0
brw------- 1 admin root 1, 1 Jan 1 1970 ram1
brw------- 1 admin root 1, 10 Jan 1 1970 ram10
brw------- 1 admin root 1, 11 Jan 1 1970 ram11
brw------- 1 admin root 1, 12 Jan 1 1970 ram12
brw------- 1 admin root 1, 13 Jan 1 1970 ram13
brw------- 1 admin root 1, 14 Jan 1 1970 ram14
brw------- 1 admin root 1, 15 Jan 1 1970 ram15
brw------- 1 admin root 1, 2 Jan 1 1970 ram2
brw------- 1 admin root 1, 3 Jan 1 1970 ram3
brw------- 1 admin root 1, 4 Jan 1 1970 ram4
brw------- 1 admin root 1, 5 Jan 1 1970 ram5
brw------- 1 admin root 1, 6 Jan 1 1970 ram6
brw------- 1 admin root 1, 7 Jan 1 1970 ram7
brw------- 1 admin root 1, 8 Jan 1 1970 ram8
brw------- 1 admin root 1, 9 Jan 1 1970 ram9
crw-rw-rw- 1 admin root 1, 8 Jan 1 1970 random
lrwxrwxrwx 1 admin root 9 Jan 1 1970 root -> mtdblock3
brw-r--r-- 1 admin root 8, 0 Aug 1 2015 sda
brw-r--r-- 1 admin root 8, 1 Aug 1 2015 sda1
brw-r--r-- 1 admin root 8, 2 Aug 1 2015 sda2
crw-r--r-- 1 admin root 21, 0 Aug 1 2015 sg0
drwxr-xr-x 2 admin root 40 Jan 1 1970 shm
crw-rw-rw- 1 admin root 5, 0 Jan 1 1970 tty
crw------- 1 admin root 4, 64 Jan 1 1970 ttyS0
crw------- 1 admin root 4, 65 Jan 1 1970 ttyS1
crw-rw-rw- 1 admin root 1, 9 Jan 1 1970 urandom
crw-r--r-- 1 admin root 189, 0 Aug 1 2015 usb1
crw-r--r-- 1 admin root 189, 128 Aug 1 2015 usb2
crw-r--r-- 1 admin root 189, 256 Aug 1 2015 usb3
crw-r--r-- 1 admin root 189, 0 Aug 1 2015 usbdev1.1
crw-r--r-- 1 admin root 189, 128 Aug 1 2015 usbdev2.1
crw-r--r-- 1 admin root 189, 129 Aug 1 2015 usbdev2.2
crw-r--r-- 1 admin root 189, 256 Aug 1 2015 usbdev3.1
crw-rw-rw- 1 admin root 1, 5 Jan 1 1970 zero
admin@r7000:/tmp/home/root# ls -l /mnt
lrwxrwxrwx 1 admin root 7 Aug 5 07:21 /mnt -> tmp/mnt
admin@r7000:/tmp/home/root# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 26240 26240 0 100% /
devtmpfs 127756 0 127756 0% /dev
tmpfs 127860 460 127400 0% /tmp
/dev/mtdblock4 90880 2216 88664 2% /jffs
/dev/sda1 25598972 89156 25509816 0% /tmp/mnt/32GB_Lexar
/dev/sda2 5572752 170360 5119308 3% /tmp/mnt/ENTWARE
admin@r7000:/tmp/home/root#


Gesendet von meinem SM-G935F mit Tapatalk
 
TLC:

I had been running the ublockr variant of pixelserv on .59 on an 87u. I moved to .61 and did a factory reset, and as part of that I cleared jffs and I used your shooter40sw variation to install ab-solution.sh. The script said it went fine, but wasn't working, and I saw in the log the /opt error, so I reinstalled entware, then reran the script, copied over the .crt files from the ublockr install, rebooted, and everything is working fine. My blacklist has one entry, which isn't surviving processing the update-hosts; I'll look to see what is going on there. My one other issue is that I am using 192.168.0.xx (cable modem is on 1.1), so the 192.168.1.3 variety needs to be changed in pixelserv and the script.

But overall, this was really smooth and no more than 15 minutes. Sweet! Thought this might be of some use.
 

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