d585d3c53de0ca8ca4ae754e9d861f614fbb2d2c
[live-initramfs-grml.git] / scripts / live-bottom / 38disable_restricted_manager
1 #!/bin/sh
2
3 PREREQ=""
4
5 prereqs()
6 {
7        echo "$PREREQ"
8 }
9
10 case $1 in
11 # get pre-requisites
12 prereqs)
13        prereqs
14        exit 0
15        ;;
16 esac
17
18 if [ -n "${NORESTRICTEDMANAGER}" ]
19 then
20         exit 0
21 fi
22
23 . /scripts/live-functions
24
25 log_begin_msg "Disabling restricted-manager"
26
27 rm -f /root/etc/xdg/autostart/restricted-manager.desktop
28 rm -f /root/etc/xdg/autostart/restricted-manager-kde.desktop
29
30 # Since we disable restricted-manager, there isn't much point generating the
31 # fglrx or nvidia modules either. The other restricted modules may still be
32 # useful.
33 if [ -e /root/etc/default/linux-restricted-modules-common ]
34 then
35         sed -i 's/^DISABLED_MODULES=""/DISABLED_MODULES="fglrx nv"/' \
36                 /root/etc/default/linux-restricted-modules-common
37 fi
38
39 log_end_msg