summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/38disable_restricted_manager
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live-bottom/38disable_restricted_manager')
-rwxr-xr-xscripts/live-bottom/38disable_restricted_manager7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/live-bottom/38disable_restricted_manager b/scripts/live-bottom/38disable_restricted_manager
index 208bf4e..d585d3c 100755
--- a/scripts/live-bottom/38disable_restricted_manager
+++ b/scripts/live-bottom/38disable_restricted_manager
@@ -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