File: postinst

package info (click to toggle)
fprobe-ulog 1.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 668 kB
  • ctags: 470
  • sloc: sh: 3,099; ansic: 2,282; makefile: 24
file content (20 lines) | stat: -rw-r--r-- 480 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh -e
# postinst script for fprobe-ulog

# Use debconf.
. /usr/share/debconf/confmodule

if [ "$1" = "configure" ] && [ -z "$2" ]; then 	  
    db_get fprobe-ulog/interface && interface="$RET"
    db_get fprobe-ulog/collector && collector="$RET"
		
    sed -i "s/^INTERFACE=.*$/INTERFACE=\"$interface\"/" /etc/default/fprobe-ulog
    sed -i "s/^FLOW_COLLECTOR=.*$/FLOW_COLLECTOR=\"$collector\"/" /etc/default/fprobe-ulog
fi	

#close all fd's
db_stop

#DEBHELPER#

exit 0