[scripts] drop .mozilla from skel for lightweight releases
This commit is contained in:
parent
046102f3b0
commit
f6b5a7cc66
@ -110,6 +110,10 @@ xfceforensic_remove_skel_stuff() {
|
|||||||
rm -rf /usr/share/wallpapers/*
|
rm -rf /usr/share/wallpapers/*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
remove_mozilla_skel_cruft() {
|
||||||
|
rm -rf /etc/skel/.mozilla
|
||||||
|
}
|
||||||
|
|
||||||
setup_oss_gfx_drivers() {
|
setup_oss_gfx_drivers() {
|
||||||
# do not tweak eselect mesa, keep defaults
|
# do not tweak eselect mesa, keep defaults
|
||||||
|
|
||||||
@ -173,6 +177,7 @@ if [ "$1" = "lxde" ]; then
|
|||||||
setup_displaymanager
|
setup_displaymanager
|
||||||
# properly tweak lxde autostart tweak, adding --desktop option
|
# properly tweak lxde autostart tweak, adding --desktop option
|
||||||
sed -i 's/pcmanfm -d/pcmanfm -d --desktop/g' /etc/xdg/lxsession/LXDE/autostart
|
sed -i 's/pcmanfm -d/pcmanfm -d --desktop/g' /etc/xdg/lxsession/LXDE/autostart
|
||||||
|
remove_mozilla_skel_cruft
|
||||||
setup_cpufrequtils
|
setup_cpufrequtils
|
||||||
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
||||||
elif [ "$1" = "e17" ]; then
|
elif [ "$1" = "e17" ]; then
|
||||||
@ -189,6 +194,7 @@ elif [ "$1" = "e17" ]; then
|
|||||||
# sed -i '/lxdm-greeter-gtk/ a\\nlast_session=enlightenment.desktop\nlast_lang=' /etc/lxdm/lxdm.conf
|
# sed -i '/lxdm-greeter-gtk/ a\\nlast_session=enlightenment.desktop\nlast_lang=' /etc/lxdm/lxdm.conf
|
||||||
# Fix ~/.gtkrc-2.0 for some nice icons in gtk
|
# Fix ~/.gtkrc-2.0 for some nice icons in gtk
|
||||||
echo 'gtk-icon-theme-name="Tango" gtk-theme-name="Xfce"' | tr " " "\n" > /etc/skel/.gtkrc-2.0
|
echo 'gtk-icon-theme-name="Tango" gtk-theme-name="Xfce"' | tr " " "\n" > /etc/skel/.gtkrc-2.0
|
||||||
|
remove_mozilla_skel_cruft
|
||||||
setup_cpufrequtils
|
setup_cpufrequtils
|
||||||
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
||||||
elif [ "$1" = "xfce" ]; then
|
elif [ "$1" = "xfce" ]; then
|
||||||
@ -197,6 +203,7 @@ elif [ "$1" = "xfce" ]; then
|
|||||||
echo "[Desktop]" > /etc/skel/.dmrc
|
echo "[Desktop]" > /etc/skel/.dmrc
|
||||||
echo "Session=xfce" >> /etc/skel/.dmrc
|
echo "Session=xfce" >> /etc/skel/.dmrc
|
||||||
remove_desktop_files
|
remove_desktop_files
|
||||||
|
remove_mozilla_skel_cruft
|
||||||
setup_cpufrequtils
|
setup_cpufrequtils
|
||||||
setup_displaymanager
|
setup_displaymanager
|
||||||
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
||||||
@ -207,6 +214,7 @@ elif [ "$1" = "fluxbox" ]; then
|
|||||||
echo "Session=fluxbox" >> /etc/skel/.dmrc
|
echo "Session=fluxbox" >> /etc/skel/.dmrc
|
||||||
remove_desktop_files
|
remove_desktop_files
|
||||||
setup_displaymanager
|
setup_displaymanager
|
||||||
|
remove_mozilla_skel_cruft
|
||||||
setup_cpufrequtils
|
setup_cpufrequtils
|
||||||
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
||||||
elif [ "$1" = "gnome" ]; then
|
elif [ "$1" = "gnome" ]; then
|
||||||
@ -227,6 +235,7 @@ elif [ "$1" = "xfceforensic" ]; then
|
|||||||
remove_desktop_files
|
remove_desktop_files
|
||||||
setup_cpufrequtils
|
setup_cpufrequtils
|
||||||
setup_displaymanager
|
setup_displaymanager
|
||||||
|
remove_mozilla_skel_cruft
|
||||||
xfceforensic_remove_skel_stuff
|
xfceforensic_remove_skel_stuff
|
||||||
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
||||||
elif [ "$1" = "kde" ]; then
|
elif [ "$1" = "kde" ]; then
|
||||||
@ -246,6 +255,7 @@ elif [ "$1" = "awesome" ]; then
|
|||||||
switch_kernel "sys-kernel/linux-sabayon" "sys-kernel/linux-fusion"
|
switch_kernel "sys-kernel/linux-sabayon" "sys-kernel/linux-fusion"
|
||||||
remove_desktop_files
|
remove_desktop_files
|
||||||
setup_displaymanager
|
setup_displaymanager
|
||||||
|
remove_mozilla_skel_cruft
|
||||||
setup_cpufrequtils
|
setup_cpufrequtils
|
||||||
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user