Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想将这些脚本添加到 init.rc,但我收到 init.rc 不支持回显的错误。
echo device > /sys/devices/platform/usbc.0/mode
在 init.rc 中做这样的事情的正确方法是什么?
你可能会使用write它。就像是:
write
write /sys/devices/platform/usbc.0/mode ${device}
或者如果你真的想写字符串“设备”:
write /sys/devices/platform/usbc.0/mode "device"