Codebase list kali-defaults / 8f997ef
Add /etc/X11/Xsession.d/52kali_noautomount to handle the "noautomount" boot option (on the kernel command-line). Raphaël Hertzog 11 years ago
4 changed file(s) with 20 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 # This file implements the "noautomount" boot option used by Kali's
1 # forensic mode to avoid auto-mounting disks which are detected
2 # dynamically by udisks
3
4 # The downside of this approach is that the setting is overwritten every
5 # time that you login in the graphical interface. If you're fed up by this
6 # and want to keep automount always disabled, just edit this file and
7 # comment everything.
8
9 if [ -r /proc/cmdline ] && [ -x "$(which gsettings)" ]; then
10 if grep -q -E "\bnoautomount\b" /proc/cmdline 2>/dev/null; then
11 gsettings set org.gnome.desktop.media-handling automount false
12 else
13 gsettings set org.gnome.desktop.media-handling automount true
14 fi
15 fi
55 * Switch debhelper compatibility level to 9.
66 * Replace postinst script with debian/kali-defaults.gconf-defaults
77 automatically handled by dh_gconf.
8 * Add /etc/X11/Xsession.d/52kali_noautomount to handle the "noautomount"
9 boot option (on the kernel command-line).
810
911 -- Raphaël Hertzog <[email protected]> Wed, 20 Feb 2013 17:50:44 +0100
1012
99
1010 Package: kali-defaults
1111 Architecture: all
12 Depends: ${misc:Depends}, gnome-human-icon-theme
12 Depends: ${misc:Depends}, gnome-human-icon-theme, libglib2.0-bin
1313 Description: Kali default settings
1414 This package implements various default settings
1515 within Kali.
00 kali-tweaks.gschema.override usr/share/glib-2.0/schemas/
1 52kali_noautomount etc/X11/Xsession.d/