[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Cant Boot into system



i tried to turn off my discrete graphics by writing a script :

sudo chown username /sys/kernel/debug/vgaswitcheroo/switch
sudo chown username /sys/kernel/debug/
echo OFF > sudo chown username /sys/kernel/debug/vgaswitcheroo/switch

the script worked fine but when i tried to run in on boot by adding it in update-rc.d file
i cant boot into my system anymore. the system freezes on startup. i placed the script.sh file in init.d folder.

i changed file permissions :
chmod 777 /etc/init.d/off_discrete.sh

& created a symlink to /etc/rc.d/

ln -s /etc/init.d/off_discrete.sh /etc/rc.d/

i can get into root terminal through elementary OS recovery mode but i cant remove the entry from system startup. can someone plz help. Plz tell me why this happened and how can i fix the issue in future. and how to reverse the process so that i can boot again.

Reply to: