如何向引导序列添加命令?

Sim*_*win 0 boot debian

我最近一直在尝试解决我的新 Debian 8.6 ppc 安装中的一些小问题。我已经找到或得到了在终端中运行的命令来修复它们。我已经将这些命令添加到/etc/init.d/rc.localand to/etc/rc.local以及.profile但我仍然需要在启动和登录后在终端中运行它们才能使它们工作。

一个是sudo modprobe snd-aoa-i2sbus让声音正常工作,另一个是synclient TapButton1=1启用触摸板点击。

小智 5

您不需要对这些任务运行命令。使用特定的配置文件来处理模块加载和外设配置。

声音模块加载

snd-aoa-i2sbus你可以通过编辑您的解决/etc/modules将与模块的名称一致。它会是这样的:

root@host:~# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
snd-aoa-i2sbus
loop
Run Code Online (Sandbox Code Playgroud)

加载时的模块选项:如果您需要在加载过程中更改特定的模块参数,请将这些参数添加到/etc/modprobe.d/<your_module>.conf. 通过执行检查可能的(如果有的话)参数是什么modinfo snd-aoa-i2sbus | grep '^parm:'

触控板配置

要更改触摸板按钮,请编辑/etc/X11/xorg.conf.d/50-synaptics.conf(如果不存在则创建)并将以下内容放入其中。

Section "InputClass"
          Identifier "touchpad catchall"
          Driver "synaptics"
          MatchIsTouchpad "on"
          Option "TapButton1" "1"
          Option "TapButton2" "2"
          Option "TapButton3" "3"
EndSection
Run Code Online (Sandbox Code Playgroud)

只需使用Option参数映射按钮行为/动作,更改触摸板按钮以更好地满足您的需求。正如对此答案的评论所指出的那样,如果xorg.conf.d/缺少目录,只需在/etc/X11. 无需xorg.conf直接调整。