File: postinst

package info (click to toggle)
thttpd 2.23beta1-3sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 684 kB
  • ctags: 677
  • sloc: ansic: 7,902; sh: 1,841; makefile: 310
file content (19 lines) | stat: -rw-r--r-- 304 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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 ..."
		/etc/init.d/thttpd start  > /dev/null || true
		;;
	*)
		#
		#	Unknown action - do nothing.
		#
		exit 0
		;;
esac