packages/net/leafnode/files/leafnode.init
nico 7cd0752226 packages/leafnode: move user/group creation from postinst to an initscript
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28900 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-09 23:17:20 +00:00

14 lines
285 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2011 OpenWrt.org
START=49
start() {
user_exists news 31 || user_add news 31 "" /var/spool/news
group_exists news 31 || group_add news 31
[ -d /var/spool/news ] || {
mkdir -m 0755 -p /var/spool/news
chown news:news /var/spool/news
}
}