File: remove

package info (click to toggle)
java-package 0.24
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 224 kB
  • ctags: 42
  • sloc: sh: 1,149; makefile: 71
file content (35 lines) | stat: -rw-r--r-- 839 bytes parent folder | download
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
j2se_base="/usr/lib/j2re1.3-blackdown"

if [ ! -e "$j2se_base/debian/info" ]; then
    exit 0
fi

# alternative <program>
function program_alternative() {
    local program="$1"
    update-alternatives \
	--remove "$program" "$j2se_base/bin/$program"
}

program_alternative java
program_alternative rmid
program_alternative rmiregistry

# derive the architecture-specific 
# directory for the plugin
arch_dir="$(dpkg --print-architecture)"

# assemble the plugin path
plugin_dir="$j2se_base/plugin/$arch_dir"

# netscape
update-alternatives \
    --remove "netscape-javaplugin.so" "$plugin_dir/netscape4/javaplugin.so"

# mozilla
update-alternatives \
    --remove "mozilla-javaplugin.so" "$plugin_dir/mozilla/javaplugin_oji.so"

# firefox
update-alternatives \
    --remove "firefox-javaplugin.so" "$plugin_dir/mozilla/javaplugin_oji.so"