Initial commit
This commit is contained in:
10
package/system/rpcd/files/rpcd.config
Normal file
10
package/system/rpcd/files/rpcd.config
Normal file
@@ -0,0 +1,10 @@
|
||||
config rpcd
|
||||
option socket /var/run/ubus.sock
|
||||
option timeout 30
|
||||
|
||||
config login
|
||||
option username 'root'
|
||||
option password '$p$root'
|
||||
list read '*'
|
||||
list write '*'
|
||||
|
||||
21
package/system/rpcd/files/rpcd.init
Executable file
21
package/system/rpcd/files/rpcd.init
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=12
|
||||
|
||||
USE_PROCD=1
|
||||
NAME=rpcd
|
||||
PROG=/sbin/rpcd
|
||||
|
||||
start_service() {
|
||||
local socket=$(uci -q get rpcd.@rpcd[0].socket)
|
||||
local timeout=$(uci -q get rpcd.@rpcd[0].timeout)
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG" ${socket:+-s "$socket"} ${timeout:+-t "$timeout"}
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
procd_send_signal rpcd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user