Virtualhere on Startup on GL.INET Router / OpenWRT

5 posts / 0 new
Last post
nils50122
Virtualhere on Startup on GL.INET Router / OpenWRT

hi,

i run the virtualhereserver on my gl.inet router with the command ./vhusbdmipsel in command line successfully.

But now i want to start the virtualhereserver automaticly on boot of the gl.inet router.

I try different things, like create a script in init.d and enable it.

Looks like:
boot() {
echo boot
./usr/sbin/vhusbdmipsel
}

OR
boot() {
echo boot
/usr/sbin/vhusbdmipsel
}

But it doesnt work.

I also try to use the vhusbdpin script, but openwrt doesnt find some locations.

Anyone has an idea?

Michael
.

Try this

#!/bin/sh /etc/rc.common
USE_PROCD=1

START=99

start_service() {
  procd_open_instance
  procd_set_param command /root/vhusbdmipsel
  procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
  procd_close_instance
}
nils50122
paste this in new created

paste this in new created script or in exist file?

thanks.

Michael
.

New

nils50122
works like a charm. thank you

works like a charm. thank you.

Log in or register to post comments