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?

#2

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
}
#3

paste this in new created script or in exist file?

thanks.

#4

New