File: postinst

package info (click to toggle)
netbase 3.11-1.2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,764 kB
  • ctags: 2,400
  • sloc: ansic: 25,540; sh: 1,090; makefile: 888; perl: 317
file content (77 lines) | stat: -rw-r--r-- 2,009 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/sh
# post install script for the Debian GNU/Linux netbase package

set -e

update-rc.d netbase defaults 18 >/dev/null

if [ x"$1" = x"upgrade" ];
then
   /etc/init.d/netbase restart
else
   /etc/init.d/netbase start
fi

# make sure that PS_PERSONALITY is not set
#unset PS_PERSONALITY

# if [ `ps -axuwww|egrep '(nfsd|mountd|ugidd|bwnfsd|pcnfsd|ypbind|yppasswd|ypserv|amd)'|grep -v grep|wc -l` -gt 0 ];
# then
#    echo
#    echo "Warning!! The portmapper has been restarted!"
#    echo
#    echo "Some of your RPC based services have to be restarted:"
#
#    if [ `ps -axwww|egrep '(nfsd|mountd|ugidd|bwnfsd|pcnfsd)'|grep -v grep|wc -l` -gt 0 ];
#    then
#      echo -n "The NFS service is running. Should I restart it? [y] "
#      read answer
#      case "$answer" in
#        ""|y*|Y*)
#          echo
#          # ignore errors produced by other package
#          /etc/init.d/netstd_nfs stop 2>/dev/null || true
#          /etc/init.d/netstd_nfs start 2>/dev/null || true
#          echo
#          ;;
#        *)
#          ;;
#      esac
#    fi
#
#    if [ `ps -axwww|egrep '(ypbind|yppasswd|ypserv)'|grep -v grep|wc -l` -gt 0 ];
#    then
#      echo -n "The NIS service is running. Should I restart it? [y] "
#      read answer
#      case "$answer" in
#        ""|y*|Y*)
#          echo
#          # ignore errors produced by other package
#          /etc/init.d/nis stop 2>/dev/null || true
#          /etc/init.d/nis start 2>/dev/null || true
#          echo
#          ;;
#        *)
#          ;;
#      esac
#    fi
#
#    if [ `ps -axwww|egrep '(amd)'|grep -v grep|wc -l` -gt 0 ];
#    then
#      echo -n "The AMD service is running. Should I restart it? [y] "
#      read answer
#      case "$answer" in
#        ""|y*|Y*)
#          echo
#          # ignore errors produced by other package
#          /etc/init.d/amd stop 2>/dev/null || true
#          /etc/init.d/amd start 2>/dev/null || true
#          echo
#          ;;
#        *)
#          ;;
#      esac
#    fi
#
# fi