加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
edit-boot-options.sh 656 Bytes
一键复制 编辑 原始数据 按行查看 历史
de-user 提交于 2020-10-09 03:53 . Initial import of the scripts and file.
#! /bin/sh
if [ "${1}" = "--help" ] || [ "${1}" = "-h" ] ; then
cat << EOF
Usage:
% ${0} "[kernel_boot_options]"
live-media-path=deepin is added to kernel boot option by default.
Any user specified kernel_boot_options will override this default value.
e.g. module=deepin persistence
EOF
exit
fi
bopts="${@:-live-media-path=deepin}"
for i in boot/grub/grub.cfg syslinux/live.cfg ; do
sed -e 's/Install Deepin/Live Deepin/' -e "s/ livecd-installer/ ${bopts}/" -e "s/\(quiet\|installer.disable.scale\|splash\) //g" -i"" /media/${USER}/DEEPINOS/${i}
done
sed -e 's/locale=zh_CN/locales=zh_CN.UTF-8/' -i"" /media/${USER}/DEEPINOS/boot/grub/grub.cfg
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化