1
0

swat.postinst 241 B

123456
  1. #!/bin/sh
  2. . $IPKG_INSTROOT/etc/functions.sh
  3. add_service swat 901/tcp
  4. grep -qe '^swat ' -e '^#swat ' $IPKG_INSTROOT/etc/inetd.conf 2>&- || \
  5. echo '#swat stream tcp nowait.400 root /usr/bin/swat swat' \
  6. >>$IPKG_INSTROOT/etc/inetd.conf