Skip to content

Commit a9d97e9

Browse files
committed
Add openSUSE
1 parent ed59a31 commit a9d97e9

File tree

29 files changed

+1472
-50
lines changed

29 files changed

+1472
-50
lines changed

compatmgr.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ while true; do
6565
echo "3) Kali"
6666
echo "4) Deepin"
6767
echo "5) Fedora"
68-
echo "6) $(tr CHOICE_RETURN)"
68+
echo "6) openSUSE"
69+
echo "7) $(tr CHOICE_RETURN)"
6970
echo -n $(tr REQUIRE_CHOICE)
7071

7172
read CHOICE
@@ -106,6 +107,13 @@ while true; do
106107
fi
107108
;;
108109
6)
110+
${DIR}/scripts/suse.sh
111+
STATUS=${?}
112+
if [ ${STATUS} -eq 9 ]; then
113+
BACK_TO_MENU=1
114+
fi
115+
;;
116+
7)
109117
break
110118
;;
111119
*)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
tr () {
4+
case ${1} in
5+
"CHANGE_INSTALL_DIR_OR_NOT")
6+
echo "Select install location"
7+
;;
8+
"CONFIRM_INSTALL_DIR_OR_NOT")
9+
echo "Install to this directory?"
10+
;;
11+
"WARN_DIR_NOT_EMPTY")
12+
echo "The directory is not empty. Force install to this directory? (May destroy original files!)"
13+
;;
14+
"NOTICE_INSTALL_DIR")
15+
echo "${DIST_FULLNAME} will be installed in ${INSTALL_DIR}"
16+
;;
17+
"INSTALL_COMPLETE")
18+
echo "${DIST_FULLNAME} installation complete"
19+
;;
20+
"INSTALL_FAILED_FETCH")
21+
echo "Installation failed. fetch has returned ${STATUS}"
22+
;;
23+
"INSTALL_FAILED_TAR")
24+
echo "Installation failed. tar has returned ${STATUS}"
25+
;;
26+
"SETTING_UP")
27+
echo "Setting ${DIST_FULLNAME}"
28+
;;
29+
*)
30+
echo ${1}
31+
;;
32+
esac
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
tr () {
4+
case ${1} in
5+
"CHANGE_INSTALL_DIR_OR_NOT")
6+
echo "选择安装位置"
7+
;;
8+
"CONFIRM_INSTALL_DIR_OR_NOT")
9+
echo "是否确认安装到此位置?"
10+
;;
11+
"WARN_DIR_NOT_EMPTY")
12+
echo "此路径非空,是否强制安装到此?(可能破坏原有文件!)"
13+
;;
14+
"NOTICE_INSTALL_DIR")
15+
echo "${DIST_FULLNAME} 将被安装至 ${INSTALL_DIR}"
16+
;;
17+
"INSTALL_COMPLETE")
18+
echo "${DIST_FULLNAME} 安装完成"
19+
;;
20+
"INSTALL_FAILED_FETCH")
21+
echo "安装失败。fetch返回了${STATUS}"
22+
;;
23+
"INSTALL_FAILED_TAR")
24+
echo "安装失败。tar返回了${STATUS}"
25+
;;
26+
"SETTING_UP")
27+
echo "正在配置 ${DIST_FULLNAME}"
28+
;;
29+
*)
30+
echo ${1}
31+
;;
32+
esac
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
tr () {
4+
case ${1} in
5+
"CHANGE_INSTALL_DIR_OR_NOT")
6+
echo "Select install location"
7+
;;
8+
"CONFIRM_INSTALL_DIR_OR_NOT")
9+
echo "Install to this directory?"
10+
;;
11+
"WARN_DIR_NOT_EMPTY")
12+
echo "The directory is not empty. Force install to this directory? (May destroy original files!)"
13+
;;
14+
"NOTICE_INSTALL_DIR")
15+
echo "${DIST_FULLNAME} will be installed in ${INSTALL_DIR}"
16+
;;
17+
"INSTALL_COMPLETE")
18+
echo "${DIST_FULLNAME} installation complete"
19+
;;
20+
"INSTALL_FAILED_FETCH")
21+
echo "Installation failed. fetch has returned ${STATUS}"
22+
;;
23+
"INSTALL_FAILED_TAR")
24+
echo "Installation failed. tar has returned ${STATUS}"
25+
;;
26+
"SETTING_UP")
27+
echo "Setting ${DIST_FULLNAME}"
28+
;;
29+
*)
30+
echo ${1}
31+
;;
32+
esac
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
tr () {
4+
case ${1} in
5+
"CHANGE_INSTALL_DIR_OR_NOT")
6+
echo "选择安装位置"
7+
;;
8+
"CONFIRM_INSTALL_DIR_OR_NOT")
9+
echo "是否确认安装到此位置?"
10+
;;
11+
"WARN_DIR_NOT_EMPTY")
12+
echo "此路径非空,是否强制安装到此?(可能破坏原有文件!)"
13+
;;
14+
"NOTICE_INSTALL_DIR")
15+
echo "${DIST_FULLNAME} 将被安装至 ${INSTALL_DIR}"
16+
;;
17+
"INSTALL_COMPLETE")
18+
echo "${DIST_FULLNAME} 安装完成"
19+
;;
20+
"INSTALL_FAILED_FETCH")
21+
echo "安装失败。fetch返回了${STATUS}"
22+
;;
23+
"INSTALL_FAILED_TAR")
24+
echo "安装失败。tar返回了${STATUS}"
25+
;;
26+
"SETTING_UP")
27+
echo "正在配置 ${DIST_FULLNAME}"
28+
;;
29+
*)
30+
echo ${1}
31+
;;
32+
esac
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
tr () {
4+
case ${1} in
5+
"CHANGE_INSTALL_DIR_OR_NOT")
6+
echo "Select install location"
7+
;;
8+
"CONFIRM_INSTALL_DIR_OR_NOT")
9+
echo "Install to this directory?"
10+
;;
11+
"WARN_DIR_NOT_EMPTY")
12+
echo "The directory is not empty. Force install to this directory? (May destroy original files!)"
13+
;;
14+
"NOTICE_INSTALL_DIR")
15+
echo "${DIST_FULLNAME} will be installed in ${INSTALL_DIR}"
16+
;;
17+
"INSTALL_COMPLETE")
18+
echo "${DIST_FULLNAME} installation complete"
19+
;;
20+
"INSTALL_FAILED_FETCH")
21+
echo "Installation failed. fetch has returned ${STATUS}"
22+
;;
23+
"INSTALL_FAILED_TAR")
24+
echo "Installation failed. tar has returned ${STATUS}"
25+
;;
26+
"SETTING_UP")
27+
echo "Setting ${DIST_FULLNAME}"
28+
;;
29+
*)
30+
echo ${1}
31+
;;
32+
esac
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
tr () {
4+
case ${1} in
5+
"CHANGE_INSTALL_DIR_OR_NOT")
6+
echo "选择安装位置"
7+
;;
8+
"CONFIRM_INSTALL_DIR_OR_NOT")
9+
echo "是否确认安装到此位置?"
10+
;;
11+
"WARN_DIR_NOT_EMPTY")
12+
echo "此路径非空,是否强制安装到此?(可能破坏原有文件!)"
13+
;;
14+
"NOTICE_INSTALL_DIR")
15+
echo "${DIST_FULLNAME} 将被安装至 ${INSTALL_DIR}"
16+
;;
17+
"INSTALL_COMPLETE")
18+
echo "${DIST_FULLNAME} 安装完成"
19+
;;
20+
"INSTALL_FAILED_FETCH")
21+
echo "安装失败。fetch返回了${STATUS}"
22+
;;
23+
"INSTALL_FAILED_TAR")
24+
echo "安装失败。tar返回了${STATUS}"
25+
;;
26+
"SETTING_UP")
27+
echo "正在配置 ${DIST_FULLNAME}"
28+
;;
29+
*)
30+
echo ${1}
31+
;;
32+
esac
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
tr () {
4+
case ${1} in
5+
"CHANGE_INSTALL_DIR_OR_NOT")
6+
echo "Select install location"
7+
;;
8+
"CONFIRM_INSTALL_DIR_OR_NOT")
9+
echo "Install to this directory?"
10+
;;
11+
"WARN_DIR_NOT_EMPTY")
12+
echo "The directory is not empty. Force install to this directory? (May destroy original files!)"
13+
;;
14+
"NOTICE_INSTALL_DIR")
15+
echo "${DIST_FULLNAME} will be installed in ${INSTALL_DIR}"
16+
;;
17+
"INSTALL_COMPLETE")
18+
echo "${DIST_FULLNAME} installation complete"
19+
;;
20+
"INSTALL_FAILED_FETCH")
21+
echo "Installation failed. fetch has returned ${STATUS}"
22+
;;
23+
"INSTALL_FAILED_TAR")
24+
echo "Installation failed. tar has returned ${STATUS}"
25+
;;
26+
"SETTING_UP")
27+
echo "Setting ${DIST_FULLNAME}"
28+
;;
29+
*)
30+
echo ${1}
31+
;;
32+
esac
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
tr () {
4+
case ${1} in
5+
"CHANGE_INSTALL_DIR_OR_NOT")
6+
echo "选择安装位置"
7+
;;
8+
"CONFIRM_INSTALL_DIR_OR_NOT")
9+
echo "是否确认安装到此位置?"
10+
;;
11+
"WARN_DIR_NOT_EMPTY")
12+
echo "此路径非空,是否强制安装到此?(可能破坏原有文件!)"
13+
;;
14+
"NOTICE_INSTALL_DIR")
15+
echo "${DIST_FULLNAME} 将被安装至 ${INSTALL_DIR}"
16+
;;
17+
"INSTALL_COMPLETE")
18+
echo "${DIST_FULLNAME} 安装完成"
19+
;;
20+
"INSTALL_FAILED_FETCH")
21+
echo "安装失败。fetch返回了${STATUS}"
22+
;;
23+
"INSTALL_FAILED_TAR")
24+
echo "安装失败。tar返回了${STATUS}"
25+
;;
26+
"SETTING_UP")
27+
echo "正在配置 ${DIST_FULLNAME}"
28+
;;
29+
*)
30+
echo ${1}
31+
;;
32+
esac
33+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/sh
2+
3+
tr () {
4+
case ${1} in
5+
"USE_ALI_DNS_OR_NOT")
6+
echo "Do you want to use Ali DNS? If not, local resolv.conf will be used by default."
7+
;;
8+
"USE_LOCAL_DNS")
9+
echo "Using local resolv.conf:"
10+
;;
11+
"USE_ALI_DNS")
12+
echo "Setting Ali DNS"
13+
;;
14+
"ADD_FSTAB_OR_NOT")
15+
echo "Autoset fstab?"
16+
;;
17+
"WARN_MOUNT_MANUALLY")
18+
echo "Warning: fstab not set. You MUST mount relative filesystems EACH TIME FREEBSD IS REBOOTED."
19+
;;
20+
"CONTINUE_WITHOUT_FSTAB_ADDED")
21+
echo "Continue without setting fstab?"
22+
;;
23+
"WARN_FSTAB_NOT_ADDED")
24+
echo "Warning: fstab not set. You can add the followings to /etc/fstab and mount with \"mount -al\""
25+
;;
26+
"ADD_FSTAB")
27+
echo "Setting fstab"
28+
;;
29+
"ADD_SOURCE_OR_NOT")
30+
echo "Use ALL ustc sources?"
31+
;;
32+
"SOURCE_NOT_ADDED_OFFICIAL_AVALIABLE")
33+
echo "ustc sources not set, but official sources are avaliable."
34+
;;
35+
"ADD_SOURCE")
36+
echo "Setting ustc sources"
37+
;;
38+
"REPLACE_RPM_NDB")
39+
echo "Replacing rpm-ndb with rpm to avoid errors."
40+
;;
41+
"INSTALL_VIM_OR_NOT")
42+
echo "This package doesn't contain any editor. Install vim as your aditor?"
43+
;;
44+
"INSTALL_VIM")
45+
echo "Installing vim"
46+
;;
47+
"NOTICE_NO_EDITOR")
48+
echo "Notice: you may install an editor later or use editors in FreeBSD."
49+
;;
50+
"SETUP_COMPLETE")
51+
echo "All done."
52+
;;
53+
"NOTICE_COMMAMD")
54+
echo "Now you can switch to ${DIST_FULLNAME} using \"chroot ${INSTALL_DIR} /bin/bash\""
55+
;;
56+
*)
57+
echo ${1}
58+
;;
59+
esac
60+
}

0 commit comments

Comments
 (0)