bla*_*ver 4 boot debian shell-script slim
在 debian 的启动或桌面启动过程中启动脚本的最简单方法是什么?
有问题的脚本由一个连接 wifi 的命令 (ifup wlan0) 组成,并且需要 root 权限。我的系统是 debian 测试,slim 登录管理器,jwm 作为窗口管理器。
我尝试了以下方法:
到目前为止没有任何效果。建议?
万一其他人需要知道,这就是最终奏效的方法。
代码:
#!/bin/sh -e
# This script is executed at the end of each multiuser runlevel
/path/to/my/script
exit 0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
26175 次 |
| 最近记录: |