portmap: import from packages

This commit is contained in:
Peter Wagner
2014-06-30 15:42:44 +02:00
parent 48340d616f
commit 28d0f1d506
3 changed files with 79 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=19
STOP=19
USE_PROCD=1
start_service() {
user_exists rpc 65533 || user_add rpc 65533 65533 rpc /var/empty
group_exists rpc 65533 || group_add rpc 65533
procd_open_instance
procd_set_param command /usr/sbin/portmap -f
procd_close_instance
}