File tree Expand file tree Collapse file tree 1 file changed +71
-20
lines changed
package/root/usr/local/sbin Expand file tree Collapse file tree 1 file changed +71
-20
lines changed Original file line number Diff line number Diff line change 55DESKTOP=" $1 "
66
77if [ -z " $DESKTOP " ]; then
8- echo " Usage: $0 <mate|i3|elementary >"
8+ echo " Usage: $0 <mate|i3|gnome|xfce4|lxde >"
99 exit 1
1010fi
1111
1212DISTRO=" "
1313if hash apt-get 2> /dev/null; then
14- DISTRO=debian
14+ DISTRO=$( lsb_release -i -s )
1515fi
1616
1717if [ -z " $DISTRO " ]; then
@@ -45,42 +45,93 @@ PACKAGES=(
4545 chromium-browser
4646)
4747
48+ # Additional packages
49+ PACKAGES+=(
50+ xserver-xorg-input-all
51+ xfonts-base
52+ rxvt-unicode-lite
53+ suckless-tools
54+ network-manager
55+ pulseaudio
56+ )
57+
58+ case $DISTRO in
59+ Ubuntu)
60+ PACKAGES+=(
61+ chromium-browser
62+ firefox
63+ gstreamer1.0-rockchip1
64+ )
65+ ;;
66+
67+ Debian)
68+ PACKAGES+=(
69+ chromium
70+ chromium-widevine
71+ )
72+ ;;
73+
74+ * )
75+ echo " Error: unsupported desktop environment $DESKTOP -$DISTRO "
76+ exit 2
77+ ;;
78+ esac
79+
4880# Add packages based on desktop selection.
49- case $DESKTOP in
50- mate)
81+ case $DESKTOP - $DISTRO in
82+ mate-Ubuntu )
5183 PACKAGES+=(
52- ubuntu-mate-core
5384 ubuntu-mate-desktop
5485 ubuntu-mate-lightdm-theme
5586 ubuntu-mate-wallpapers-xenial
5687 lightdm
5788 )
5889 ;;
5990
60- i3|i3wm)
91+ mate-Debian)
92+ PACKAGES+=(
93+ mate-desktop-environment
94+ mate-desktop-environment-extras
95+ desktop-base
96+ lightdm
97+ )
98+ ;;
99+
100+ gnome-Ubuntu)
101+ PACKAGES+=(
102+ ubuntu-gnome-desktop
103+ ubuntu-gnome-wallpapers-xenial
104+ )
105+ ;;
106+
107+ gnome-Debian)
108+ PACKAGES+=(
109+ gnome
110+ desktop-base
111+ )
112+ ;;
113+
114+ i3-Ubuntu|i3-Debian)
61115 PACKAGES+=(
62- xserver-xorg-input-all
63- xfonts-base
64- slim
65- rxvt-unicode-lite
66116 i3
67117 i3status
68118 i3lock
69- suckless-tools
70- network-manager
71- pulseaudio
119+ slim
72120 )
73121 ;;
74122
75- elementary)
76- add-apt-repository ppa:elementary-os/stable
77- apt-get update
123+ xfce4-Ubuntu|xfce4-Debian)
124+ PACKAGES+=(
125+ xfce4
126+ xfce4-goodies
127+ slim
128+ )
129+ ;;
78130
131+ lxde-Ubuntu|lxde-Debian)
79132 PACKAGES+=(
80- elementary-theme
81- elementary-icon-theme
82- elementary-default-settings
83- elementary-desktop
133+ lxde
134+ lxdm
84135 )
85136 ;;
86137
You can’t perform that action at this time.
0 commit comments