[英]Raspberry Pi stuck on script at startup
I wanted to have my Raspberry Pi update the system clock from a GPS on start up but now something has gone wrong and I can't login. 我想让Raspberry Pi在启动时通过GPS更新系统时钟,但现在出了点问题,我无法登录。 I created a bash script that calls 'sudo -i' and a few other gpsd related instructions. 我创建了一个bash脚本,该脚本调用'sudo -i'和其他一些与gpsd相关的指令。 I pointed the /etc/profile towards the script. 我将/ etc / profile指向脚本。 If I Ctrl+C to get to a prompt I get root access but the directories are listing nothing when I use the 'ls' command. 如果我按Ctrl + C进入提示符,则可以得到root用户访问权限,但使用“ ls”命令时目录未列出任何内容。 If I exit from root I get stuck again. 如果我从root退出,我将再次陷入困境。 I figure that if I could delete the bash script the problem would go away but I don't know how to view that partition of the SD card on a PC. 我认为,如果可以删除bash脚本,问题将消失,但是我不知道如何在PC上查看SD卡的分区。 Any suggestions? 有什么建议么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.