# first time installation
if ! test -d /opt; then
mkdir /mnt/sda2/opt
ln -sf /mnt/sda2/opt /opt
fi
wget http://pkg.entware.net/binaries/armv5/installer/entware_install.sh # examined it, pretty clear and simple
sh entware_install.sh
/opt/bin/opkg update
# installing transmission:
/opt/bin/opkg install transmission-web
# edited /opt/etc/transmission/settings.json to add my PC to the whitelist
/opt/bin/transmission-daemon --config-dir /opt/etc/transmission/
How can I automatically start Entware packages at system boot and stop them at shutdown? I can probably add "/opt/etc/init.d/rc.unslung start" in a powerup user script via the GUI, but how can I get the stop command to be executed? Is there a preferred way to do both of these?
aufs.sh -n # always do this when directly managing anything under /Alt-F or /mnt/whatever/Alt-F
mkdir -p /Alt-F/etc/init.d
touch /Alt-F/etc/init.d/S18entware
aufs.sh -r # end of direct /Alt-F managing, faster
ln -sf /usr/sbin/rcscript /sbin/rcentware # autodone at hotplugging
rcentware enable # boot enable
#!/bin/sh
DESC="Entware-ng"
#TYPE=sys # uncommenting this will make it appears at Services->System
. /etc/init.d/common
case "$1" in
start)
# code to start it, return 0 if OK
;;
stop)
# code to stop it, return 0 if OK
;;
status)
# code to give its status, return 0 if running
;;
*) usage $0 "start|stop|status" ;;
esac
Thanks.Bill
#!/bin/sh
DESC="Entware-ng"
TYPE=sys # uncommenting this will make it appears at Services->System
. /etc/init.d/common
case "$1" in
start)
# code to start it, return 0 if OK
/opt/etc/init.d/rc.unslung start ;;
stop)
# code to stop it, return 0 if OK
/opt/etc/init.d/rc.unslung stop ;;
status)
# code to give its status, return 0 if running
/opt/etc/init.d/rc.unslung check ;;
*) usage $0 "start|stop|status" ;;
esac
Thanks.Bill
#!/bin/sh
DESC="Entware-ng"
TYPE=sys # uncommenting this will make it appears at Services->System
. /etc/init.d/common
case "$1" in
start)
# code to start it, return 0 if OK
/opt/etc/init.d/rc.unslung start ;;
stop)
# code to stop it, return 0 if OK
/opt/etc/init.d/rc.unslung stop ;;
status)
# code to give its status, return 0 if running
/opt/etc/init.d/rc.unslung check ;;
restart)
# code to restart it, return 0 if OK
/opt/etc/init.d/rc.unslung restart ;;
*) usage $0 "start|stop|status|restart" ;;
esac
Enter code here...
How to correctly remove Entware-ng repository and all of its traces?
rcentware stop
/opt/etc/init.d/rc.unslung stop
for i in bin etc lib sbin share tmp usr var; do rm -rf /opt/$i; done
rm -f /etc/init.d/S81entware /sbin/rcentware
The Midnight Commander from Alt-F supports now Cyrillic symbols,