我想.sh在注销和关闭 Ubuntu 时使用 bash运行一个文件。我在网上上下搜索,只找到了 KDE 和 GNOME 的修复程序。脚本很简单,我只需要知道是否可以将代码行添加到“注销/关闭”文件中,或者是否需要在另一个脚本中引用它。
.sh
reboot shutdown scripts logout
logout ×1
reboot ×1
scripts ×1
shutdown ×1