Demontager
New Around Here
I tried to install shadowsocks to ASUS-RT3100 by following github manual and found that install script cannot complete because an error in /opt/etc/init.d/S02haveged
After checking install.sh i see it has 39 line where it wish to start haveged
Contents of S02haveged
If i start it manually
I tried to remove and install haveged again, but same error.
Yeah, rc.func does not exists as error says, so what should i do to fix that?
Code:
admin@RT-AC3100-4060:/tmp/home/root# sh -c "$(wget https://cdn.jsdelivr.net/gh/Acris/shadowsocks-asuswrt-merlin@master/tools/install.sh -O -)"
--2022-11-06 15:49:23-- https://cdn.jsdelivr.net/gh/Acris/shadowsocks-asuswrt-merlin@master/tools/install.sh
Resolving cdn.jsdelivr.net... 2606:4700::6810:5614, 104.16.87.20, 104.16.85.20, ...
Connecting to cdn.jsdelivr.net|2606:4700::6810:5614|:443... failed: Network is unreachable.
Connecting to cdn.jsdelivr.net|104.16.87.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-sh]
Saving to: 'STDOUT'
- [ <=> ] 3.40K --.-KB/s in 0s
2022-11-06 15:49:25 (15.4 MB/s) - written to stdout [3479]
Checking installation environment...
git version 2.34.3
opkg version f2166a89b7e96e2c60002959731eebc5f45fa318 (2020-05-07)
Installing required packages...
Downloading https://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Package shadowsocks-libev-ss-redir (3.3.5-5) installed in root is up to date.
Package haveged (1.9.18-1) installed in root is up to date.
Package unbound-daemon (1.16.1-1) installed in root is up to date.
Package ipset (7.15-2) installed in root is up to date.
Package iptables (1.4.21-3) installed in root is up to date.
/opt/etc/init.d/S02haveged: .: line 10: can't open '/opt/etc/init.d/rc.func'
admin@RT-AC3100-4060:/tmp/home/root#
After checking install.sh i see it has 39 line where it wish to start haveged
Code:
......
echo -e "$ansi_green Installing required packages... $ansi_std"
opkg update
opkg upgrade
opkg install shadowsocks-libev-ss-redir haveged unbound-daemon ipset iptables
/opt/etc/init.d/S02haveged start
......
Contents of S02haveged
Code:
# cat /opt/etc/init.d/S02haveged
#!/bin/sh
ENABLED=yes
PROCS=haveged
ARGS="-w 1024 -d 32 -i 32 -v 1"
PREARGS=""
DESC=$PROCS
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
If i start it manually
Code:
admin@RT-AC3100-4060:/tmp/home/root# /opt/etc/init.d/S02haveged start
/opt/etc/init.d/S02haveged: .: line 10: can't open '/opt/etc/init.d/rc.func'
I tried to remove and install haveged again, but same error.
Yeah, rc.func does not exists as error says, so what should i do to fix that?