-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdebian-update-alternatives
executable file
·38 lines (34 loc) · 1.23 KB
/
debian-update-alternatives
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
#!/bin/sh
#
# Update Debian alternatives.
if test "$(exec id -u)" -ne 0; then
echo 'damn. invoke me as root, please' 1>&2
exit 1
fi
while IFS=' ' read -r a b c; do
update-alternatives --install "$a" "$b" "$c" 100
update-alternatives --set "$b" "$c"
done <<IN
/bin/ksh ksh /usr/bin/ksh2020
/usr/bin/awk awk /usr/bin/original-awk
/usr/bin/csh csh /bin/bsd-csh
/usr/bin/editor editor /bin/ed
/usr/bin/ftp ftp /usr/bin/ftp-ssl
/usr/bin/gnome-www-browser gnome-www-browser /usr/bin/chromium
/usr/bin/infobrowser infobrowser /usr/bin/info
/usr/bin/locate locate /usr/bin/mlocate
/usr/bin/mailx mailx /usr/bin/s-nail
/usr/bin/pager pager /usr/bin/less
/usr/bin/pinentry pinentry /usr/bin/pinentry-tty
/usr/bin/pinentry-x11 pinentry-x11 /usr/bin/pinentry-gtk-2
/usr/bin/readline-editor readline-editor /usr/bin/rlwrap
/usr/bin/rename rename /usr/bin/file-rename
/usr/bin/rxvt rxvt /usr/bin/urxvt
/usr/bin/ssh-askpass ssh-askpass /usr/lib/ssh/x11-ssh-askpass
/usr/bin/www-browser www-browser /usr/bin/elinks
/usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/st
/usr/bin/x-window-manager x-window-manager /usr/bin/bspwm
/usr/bin/x-www-browser x-www-browser /usr/bin/chromium
IN
# /usr/bin/pico pico /usr/bin/pico.alpine
# vim: set ft=sh :