File: postinst

package info (click to toggle)
thttpd 2.23beta1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 684 kB
  • ctags: 679
  • sloc: ansic: 7,908; sh: 1,871; makefile: 310
file content (23 lines) | stat: -rw-r--r-- 408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

case "$1" in
	configure)
		echo "Updating rc.d symbolic links to start thttpd upon booting."
		update-rc.d thttpd defaults 20 > /dev/null
		echo "Starting thttpd ..."
		if [ -x /usr/sbin/invoke-rc.d ]; then
			invoke-rc.d thttpd start  > /dev/null || true
		else
			/etc/init.d/thttpd start  > /dev/null || true
		fi		
		;;
	*)
		#
		#	Unknown action - do nothing.
		#
		exit 0
		;;
esac