Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
Add support for CDlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Jul 4, 2017
1 parent 66edb3e commit 6694885
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions boot/grub/distro/cdlinux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
set icon="slackware";
set vmlinuz_img="(loop)/CDlinux/bzImage";
set initrd_img="(loop)/CDlinux/initrd*";
regexp --set=cdl_dir '^(.*)/.*$' "$isofile"
regexp --set=cdl_img '^.*/(.*)$' "$isofile"
set linux_extra="CDL_IMG=${cdl_img} CDL_DIR=${cdl_dir}";
set kcmdline="";
if [ "${lang}" == "zh_CN" ]; then
kcmdline="${kcmdline} CDL_LANG=zh_CN.UTF-8";
fi;
if test -f $vmlinuz_img -a -f $initrd_img; then
menuentry $"Boot CDlinux From ISO" --class $icon{
linux $vmlinuz_img $kcmdline $linux_extra;
initrd $initrd_img;
}
fi;
2 changes: 2 additions & 0 deletions boot/grub/isoboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ function CheckLinuxType {
source $prefix/distro/freebsd.sh;
elif test -f (loop)/*/*/bsd.rd; then
source $prefix/distro/openbsd.sh;
elif test -d (loop)/CDlinux; then
source $prefix/distro/cdlinux.sh;
fi;
if test -f (loop)/boot/grub/loopback.cfg; then
menuentry $"Boot ISO (Loopback)" "$isofile" --class gnu-linux{
Expand Down
4 changes: 4 additions & 0 deletions lang/zh_CN/fm.po
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ msgstr "作为 BlackArch LiveCD 启动 (i386)"
msgid "Boot FreeBSD From ISO"
msgstr "作为 FreeBSD ISO 启动"

#: distro/cdlinux.sh:6
msgid "Boot CDlinux From ISO"
msgstr "作为 CDlinux ISO 启动"

#: distro/debian.sh:21
msgid "Please input the username. Default:user Super User:root Devuan:devuan"
msgstr "请输入登录用户名。默认:user 超级用户:root Devuan:devuan"
Expand Down
4 changes: 4 additions & 0 deletions lang/zh_TW/fm.po
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ msgstr "作爲 BlackArch LiveCD 啓動 (i386)"
msgid "Boot FreeBSD From ISO"
msgstr "作爲 FreeBSD ISO 啓動"

#: distro/cdlinux.sh:6
msgid "Boot CDlinux From ISO"
msgstr "作爲 CDlinux ISO 啓動"

#: distro/debian.sh:21
msgid "Please input the username. Default:user Super User:root Devuan:devuan"
msgstr "請輸入登錄用戶名。默認:user 超級用戶:root Devuan:devuan"
Expand Down

0 comments on commit 6694885

Please sign in to comment.