portmap: moved to github
[openwrt.org/packages.git] / net / portmap.init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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
}

comments