Add /etc/X11/Xsession.d/52kali_noautomount to handle the "noautomount" boot option (on the kernel command-line).
Raphaël Hertzog
11 years ago
|
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
|
5 | 5 |
* Switch debhelper compatibility level to 9.
|
6 | 6 |
* Replace postinst script with debian/kali-defaults.gconf-defaults
|
7 | 7 |
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).
|
8 | 10 |
|
9 | 11 |
-- Raphaël Hertzog <[email protected]> Wed, 20 Feb 2013 17:50:44 +0100
|
10 | 12 |
|
9 | 9 |
|
10 | 10 |
Package: kali-defaults
|
11 | 11 |
Architecture: all
|
12 | |
Depends: ${misc:Depends}, gnome-human-icon-theme
|
|
12 |
Depends: ${misc:Depends}, gnome-human-icon-theme, libglib2.0-bin
|
13 | 13 |
Description: Kali default settings
|
14 | 14 |
This package implements various default settings
|
15 | 15 |
within Kali.
|
0 | 0 |
kali-tweaks.gschema.override usr/share/glib-2.0/schemas/
|
|
1 |
52kali_noautomount etc/X11/Xsession.d/
|