packages/net/portmap/files/portmap.init
tripolar 4dab57f79f [packages] portmap: switch to new procd init script style and create and use the "rpc"
user instead of the "nobody" user for the daemon

Signed-off-by: Peter Wagner <tripolar@gmx.at>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@38134 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-23 10:11:17 +00:00

17 lines
319 B
Bash

#!/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
}