X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F38disable_restricted_manager;h=d585d3c53de0ca8ca4ae754e9d861f614fbb2d2c;hb=e170719f72d4b5805f9278ed87c21497308ab1b0;hp=6bc9cb8c5dc7fa531736b714b627eb8e80f645a6;hpb=f3da632272998a39ccd0388d87eec04a5ad6cbc1;p=live-boot-grml.git diff --git a/scripts/live-bottom/38disable_restricted_manager b/scripts/live-bottom/38disable_restricted_manager index 6bc9cb8..d585d3c 100755 --- a/scripts/live-bottom/38disable_restricted_manager +++ b/scripts/live-bottom/38disable_restricted_manager @@ -2,8 +2,6 @@ PREREQ="" -. /scripts/live-functions - prereqs() { echo "$PREREQ" @@ -22,7 +20,9 @@ then exit 0 fi -log_begin_msg "Disabling restricted-manager..." +. /scripts/live-functions + +log_begin_msg "Disabling restricted-manager" rm -f /root/etc/xdg/autostart/restricted-manager.desktop rm -f /root/etc/xdg/autostart/restricted-manager-kde.desktop @@ -30,7 +30,10 @@ rm -f /root/etc/xdg/autostart/restricted-manager-kde.desktop # Since we disable restricted-manager, there isn't much point generating the # fglrx or nvidia modules either. The other restricted modules may still be # useful. -sed -i 's/^DISABLED_MODULES=""/DISABLED_MODULES="fglrx nv"/' \ - /root/etc/default/linux-restricted-modules-common +if [ -e /root/etc/default/linux-restricted-modules-common ] +then + sed -i 's/^DISABLED_MODULES=""/DISABLED_MODULES="fglrx nv"/' \ + /root/etc/default/linux-restricted-modules-common +fi log_end_msg