File: preinst

package info (click to toggle)
minicom 1.82-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,156 kB
  • ctags: 1,106
  • sloc: ansic: 12,230; makefile: 178; sh: 149; perl: 39
file content (16 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/perl


exit (0) unless ($ARGV[0] =~ m/^(install|upgrade)$/);
umask(022);


#
# Leave a marker behind if this is a fresh installation.
#
if (! -f '/var/lib/minicom/minirc.dfl' && ! -f '/etc/minirc.dfl') {
	open(FD, ">/etc/minicom.noconf");
	close FD;
}

0;