Rev 5 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5 | Rev 11 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/bin/bash |
1 | #!/bin/bash |
2 | 2 | ||
3 | # |
3 | # |
4 | # VWhois (ViaThinkSoft WHOIS, a fork of generic Whois / gwhois) |
4 | # VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois) |
5 | # Installer / Uninstaller |
5 | # Installer / Uninstaller |
6 | # |
6 | # |
7 | # (c) 2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de> |
7 | # (c) 2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de> |
8 | # |
8 | # |
9 | # License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2) |
9 | # License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2) |
Line 16... | Line 16... | ||
16 | exit 1 |
16 | exit 1 |
17 | fi |
17 | fi |
18 | 18 | ||
19 | # --- STEP 1: Remove the "installed" symlinks |
19 | # --- STEP 1: Remove the "installed" symlinks |
20 | 20 | ||
21 | if [ -L /usr/bin/gwhois ]; then |
21 | if [ -L /usr/bin/vgwhois ]; then |
22 | rm /usr/bin/gwhois |
22 | rm /usr/bin/vgwhois |
23 | echo "Symlink /usr/bin/gwhois removed" |
23 | echo "Symlink /usr/bin/vgwhois removed" |
24 | fi |
24 | fi |
25 | 25 | ||
26 | # --- |
26 | # --- |
27 | 27 | ||
28 | if [ -L /usr/sbin/gwhois-pattern-update ]; then |
28 | if [ -L /usr/sbin/vgwhois-pattern-update ]; then |
29 | rm /usr/sbin/gwhois-pattern-update |
29 | rm /usr/sbin/vgwhois-pattern-update |
30 | echo "Symlink /usr/sbin/gwhois-pattern-update removed" |
30 | echo "Symlink /usr/sbin/vgwhois-pattern-update removed" |
31 | fi |
31 | fi |
32 | 32 | ||
33 | # --- |
33 | # --- |
34 | 34 | ||
35 | if [ -L /usr/sbin/gwhois-qa-check ]; then |
35 | if [ -L /usr/sbin/vgwhois-qa-check ]; then |
36 | rm /usr/sbin/gwhois-qa-check |
36 | rm /usr/sbin/vgwhois-qa-check |
37 | echo "Symlink /usr/sbin/gwhois-qa-check removed" |
37 | echo "Symlink /usr/sbin/vgwhois-qa-check removed" |
38 | fi |
38 | fi |
39 | 39 | ||
40 | # --- |
40 | # --- |
41 | 41 | ||
42 | if [ -L /usr/sbin/gwhois-update ]; then |
42 | if [ -L /usr/sbin/vgwhois-update ]; then |
43 | rm /usr/sbin/gwhois-update |
43 | rm /usr/sbin/vgwhois-update |
44 | echo "Symlink /usr/sbin/gwhois-update removed" |
44 | echo "Symlink /usr/sbin/vgwhois-update removed" |
45 | fi |
45 | fi |
46 | 46 | ||
47 | # --- |
47 | # --- |
48 | 48 | ||
49 | if [ -L /usr/share/man/man1/gwhois.1 ]; then |
49 | if [ -L /usr/share/man/man1/vgwhois.1 ]; then |
50 | rm /usr/share/man/man1/gwhois.1 |
50 | rm /usr/share/man/man1/vgwhois.1 |
51 | echo "Symlink /usr/share/man/man1/gwhois.1 removed" |
51 | echo "Symlink /usr/share/man/man1/vgwhois.1 removed" |
52 | fi |
52 | fi |