summaryrefslogtreecommitdiff
path: root/package/samba/files/swat.postinst
blob: 85c2d226e52c3be2e44d061b1a8fbc41d91619d8 (plain)
1
2
3
4
5
6
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_service swat 901/tcp
grep -qe '^swat	' -e '^#swat	' $IPKG_INSTROOT/etc/inetd.conf 2>&- || \
    echo '#swat	stream	tcp	nowait.400	root	/usr/bin/swat	swat' \
    >>$IPKG_INSTROOT/etc/inetd.conf