Initial checkin
[live-initramfs-grml.git] / scripts / live-bottom / 38disable_restricted_manager
1 #!/bin/sh
2
3 PREREQ=""
4
5 . /scripts/live-functions
6
7 prereqs()
8 {
9        echo "$PREREQ"
10 }
11
12 case $1 in
13 # get pre-requisites
14 prereqs)
15        prereqs
16        exit 0
17        ;;
18 esac
19
20 if [ -n "${NORESTRICTEDMANAGER}" ]
21 then
22         exit 0
23 fi
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 sed -i 's/^DISABLED_MODULES=""/DISABLED_MODULES="fglrx nv"/' \
34         /root/etc/default/linux-restricted-modules-common
35
36 log_end_msg