summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postrm-wm2
-rw-r--r--autoscripts/prerm-wm3
-rw-r--r--autoscripts/prerm-xaw9
3 files changed, 8 insertions, 6 deletions
diff --git a/autoscripts/postrm-wm b/autoscripts/postrm-wm
deleted file mode 100644
index c4670b9..0000000
--- a/autoscripts/postrm-wm
+++ /dev/null
@@ -1,2 +0,0 @@
-update-alternatives --remove x-window-manager #WM#
-
diff --git a/autoscripts/prerm-wm b/autoscripts/prerm-wm
new file mode 100644
index 0000000..b97d627
--- /dev/null
+++ b/autoscripts/prerm-wm
@@ -0,0 +1,3 @@
+if [ "$1" = "remove" ]; then
+ update-alternatives --remove x-window-manager #WM#
+fi
diff --git a/autoscripts/prerm-xaw b/autoscripts/prerm-xaw
index 2507a2f..98837f8 100644
--- a/autoscripts/prerm-xaw
+++ b/autoscripts/prerm-xaw
@@ -1,4 +1,5 @@
-for opts in #OPTS#; do
- update-alternatives --quiet --remove $opts
-done
-
+if [ "$1" = "remove" ]; then
+ for opts in #OPTS#; do
+ update-alternatives --quiet --remove $opts
+ done
+fi