mirror of
https://github.com/RROrg/rr.git
synced 2025-08-30 00:17:02 +08:00
Compare commits
No commits in common. "d04e08ecd990836ba4fc0675a72db94398be64f1" and "7d96f04fe336e7e64bfe722ec8ee78551b21cba6" have entirely different histories.
d04e08ecd9
...
7d96f04fe3
@ -179,8 +179,6 @@ if [ "$(echo "${KVER:-4}" | cut -d'.' -f1)" -lt 5 ]; then
|
|||||||
CMDLINE["elevator"]="elevator"
|
CMDLINE["elevator"]="elevator"
|
||||||
else
|
else
|
||||||
CMDLINE["split_lock_detect"]="off"
|
CMDLINE["split_lock_detect"]="off"
|
||||||
# CMDLINE['module.sig_enforce']="0"
|
|
||||||
# CMDLINE['loadpin.enforce']="0"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${DT}" = "true" ]; then
|
if [ "${DT}" = "true" ]; then
|
||||||
@ -249,27 +247,6 @@ if [ "${DT}" = "true" ] && ! echo "v1000nk epyc7002 purley broadwellnkv2" | grep
|
|||||||
# CMDLINE['scsi_mod.scan']="sync" # TODO: redpill panic of vmware scsi? (add to cmdline)
|
# CMDLINE['scsi_mod.scan']="sync" # TODO: redpill panic of vmware scsi? (add to cmdline)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
########### V1000NK DEBUG ###########
|
|
||||||
if echo "v1000nk" | grep -wq "${PLATFORM}"; then
|
|
||||||
if ! echo "${CMDLINE['modprobe.blacklist']}" | grep -q "virtio"; then
|
|
||||||
[ ! "${CMDLINE['modprobe.blacklist']}" = "" ] && CMDLINE['modprobe.blacklist']+=","
|
|
||||||
CMDLINE['modprobe.blacklist']+="virtio,virtio_blk,virtio_console,virtio_input,virtio_mmio,virtio_net,virtio_pci,virtio_ring,virtio_scsi"
|
|
||||||
fi
|
|
||||||
if ! echo "${CMDLINE['modprobe.blacklist']}" | grep -q "e1000"; then
|
|
||||||
[ ! "${CMDLINE['modprobe.blacklist']}" = "" ] && CMDLINE['modprobe.blacklist']+=","
|
|
||||||
CMDLINE['modprobe.blacklist']+="e1000,e1000e"
|
|
||||||
fi
|
|
||||||
if ! echo "${CMDLINE['modprobe.blacklist']}" | grep -q "mpt3sas"; then
|
|
||||||
[ ! "${CMDLINE['modprobe.blacklist']}" = "" ] && CMDLINE['modprobe.blacklist']+=","
|
|
||||||
CMDLINE['modprobe.blacklist']+="mpt3sas"
|
|
||||||
fi
|
|
||||||
if ! echo "${CMDLINE['modprobe.blacklist']}" | grep -q "megaraid_sas"; then
|
|
||||||
[ ! "${CMDLINE['modprobe.blacklist']}" = "" ] && CMDLINE['modprobe.blacklist']+=","
|
|
||||||
CMDLINE['modprobe.blacklist']+="megaraid_sas"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
########### V1000NK DEBUG ###########
|
|
||||||
|
|
||||||
# CMDLINE['kvm.ignore_msrs']="1"
|
# CMDLINE['kvm.ignore_msrs']="1"
|
||||||
# CMDLINE['kvm.report_ignored_msrs']="0"
|
# CMDLINE['kvm.report_ignored_msrs']="0"
|
||||||
|
|
||||||
@ -460,10 +437,7 @@ else
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Disconnect wireless
|
# Disconnect wireless
|
||||||
lsmod | grep -q iwlwifi && for F in /sys/class/net/wlan*; do
|
lsmod | grep -q iwlwifi && for F in /sys/class/net/wlan*; do [ ! -e "${F}" ] && continue; connectwlanif "$(basename "${F}")" 0 2>/dev/null; done
|
||||||
[ ! -e "${F}" ] && continue
|
|
||||||
connectwlanif "$(basename "${F}")" 0 2>/dev/null
|
|
||||||
done
|
|
||||||
# Unload all network drivers
|
# Unload all network drivers
|
||||||
# for F in $(realpath /sys/class/net/*/device/driver); do [ ! -e "${F}" ] && continue; rmmod -f "$(basename ${F})" 2>/dev/null || true; done
|
# for F in $(realpath /sys/class/net/*/device/driver); do [ ! -e "${F}" ] && continue; rmmod -f "$(basename ${F})" 2>/dev/null || true; done
|
||||||
|
|
||||||
|
@ -1522,8 +1522,7 @@ function boot() {
|
|||||||
function customDTS() {
|
function customDTS() {
|
||||||
# Loop menu
|
# Loop menu
|
||||||
while true; do
|
while true; do
|
||||||
[ -f "${USER_UP_PATH}/${MODEL}.dts" ] && mv -f "${USER_UP_PATH}/${MODEL}.dts" "${USER_UP_PATH}/model.dts"
|
[ -f "${USER_UP_PATH}/${MODEL}.dts" ] && CUSTOMDTS="Yes" || CUSTOMDTS="No"
|
||||||
[ -f "${USER_UP_PATH}/model.dts" ] && CUSTOMDTS="Yes" || CUSTOMDTS="No"
|
|
||||||
rm -f "${TMP_PATH}/menu"
|
rm -f "${TMP_PATH}/menu"
|
||||||
{
|
{
|
||||||
echo "u \"$(TEXT "Upload dts file")\""
|
echo "u \"$(TEXT "Upload dts file")\""
|
||||||
@ -1540,7 +1539,7 @@ function customDTS() {
|
|||||||
if ! tty 2>/dev/null | grep -q "/dev/pts"; then #if ! tty 2>/dev/null | grep -q "/dev/pts" || [ -z "${SSH_TTY}" ]; then
|
if ! tty 2>/dev/null | grep -q "/dev/pts"; then #if ! tty 2>/dev/null | grep -q "/dev/pts" || [ -z "${SSH_TTY}" ]; then
|
||||||
MSG=""
|
MSG=""
|
||||||
MSG+="$(TEXT "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol).\n")"
|
MSG+="$(TEXT "This feature is only available when accessed via ssh (Requires a terminal that supports ZModem protocol).\n")"
|
||||||
MSG+="$(printf "$(TEXT "Or upload the dts file to %s via DUFS, Will be automatically imported when building.\n")" "${USER_UP_PATH}/model.dts")"
|
MSG+="$(printf "$(TEXT "Or upload the dts file to %s via DUFS, Will be automatically imported when building.\n")" "${USER_UP_PATH}/${MODEL}.dts")"
|
||||||
DIALOG --title "$(TEXT "Custom DTS")" \
|
DIALOG --title "$(TEXT "Custom DTS")" \
|
||||||
--msgbox "${MSG}" 0 0
|
--msgbox "${MSG}" 0 0
|
||||||
return
|
return
|
||||||
@ -1561,7 +1560,7 @@ function customDTS() {
|
|||||||
--msgbox "${MSG}" 0 0
|
--msgbox "${MSG}" 0 0
|
||||||
else
|
else
|
||||||
[ -d "{USER_UP_PATH}" ] || mkdir -p "${USER_UP_PATH}"
|
[ -d "{USER_UP_PATH}" ] || mkdir -p "${USER_UP_PATH}"
|
||||||
cp -f "${USER_FILE}" "${USER_UP_PATH}/model.dts"
|
cp -f "${USER_FILE}" "${USER_UP_PATH}/${MODEL}.dts"
|
||||||
DIALOG --title "$(TEXT "Custom DTS")" \
|
DIALOG --title "$(TEXT "Custom DTS")" \
|
||||||
--msgbox "$(TEXT "A valid dts file, Automatically import at compile time.")" 0 0
|
--msgbox "$(TEXT "A valid dts file, Automatically import at compile time.")" 0 0
|
||||||
fi
|
fi
|
||||||
@ -1570,13 +1569,13 @@ function customDTS() {
|
|||||||
touch "${PART1_PATH}/.build"
|
touch "${PART1_PATH}/.build"
|
||||||
;;
|
;;
|
||||||
d)
|
d)
|
||||||
rm -f "${USER_UP_PATH}/model.dts"
|
rm -f "${USER_UP_PATH}/${MODEL}.dts"
|
||||||
touch "${PART1_PATH}/.build"
|
touch "${PART1_PATH}/.build"
|
||||||
;;
|
;;
|
||||||
i)
|
i)
|
||||||
rm -rf "${TMP_PATH}/model.dts"
|
rm -rf "${TMP_PATH}/model.dts"
|
||||||
if [ -f "${USER_UP_PATH}/model.dts" ]; then
|
if [ -f "${USER_UP_PATH}/${MODEL}.dts" ]; then
|
||||||
cp -f "${USER_UP_PATH}/model.dts" "${TMP_PATH}/model.dts"
|
cp -f "${USER_UP_PATH}/${MODEL}.dts" "${TMP_PATH}/model.dts"
|
||||||
else
|
else
|
||||||
ODTB="$(find "${PART2_PATH}" -type f -name "*.dtb" | head -1)"
|
ODTB="$(find "${PART2_PATH}" -type f -name "*.dtb" | head -1)"
|
||||||
if [ -f "${ODTB}" ]; then
|
if [ -f "${ODTB}" ]; then
|
||||||
@ -1599,7 +1598,7 @@ function customDTS() {
|
|||||||
--msgbox "${MSG}" 0 0
|
--msgbox "${MSG}" 0 0
|
||||||
else
|
else
|
||||||
mkdir -p "${USER_UP_PATH}"
|
mkdir -p "${USER_UP_PATH}"
|
||||||
cp -f "${TMP_PATH}/modelEdit.dts" "${USER_UP_PATH}/model.dts"
|
cp -f "${TMP_PATH}/modelEdit.dts" "${USER_UP_PATH}/${MODEL}.dts"
|
||||||
rm -r "${TMP_PATH}/model.dts" "${TMP_PATH}/modelEdit.dts"
|
rm -r "${TMP_PATH}/model.dts" "${TMP_PATH}/modelEdit.dts"
|
||||||
touch "${PART1_PATH}/.build"
|
touch "${PART1_PATH}/.build"
|
||||||
break
|
break
|
||||||
|
@ -186,7 +186,6 @@ for ADDON in "redpill" "revert" "misc" "eudev" "disks" "localrss" "notify" "wol"
|
|||||||
PARAMS=""
|
PARAMS=""
|
||||||
if [ "${ADDON}" = "disks" ]; then
|
if [ "${ADDON}" = "disks" ]; then
|
||||||
PARAMS=${HDDSORT}
|
PARAMS=${HDDSORT}
|
||||||
[ -f "${USER_UP_PATH}/model.dts" ] && cp -f "${USER_UP_PATH}/model.dts" "${RAMDISK_PATH}/addons/model.dts"
|
|
||||||
[ -f "${USER_UP_PATH}/${MODEL}.dts" ] && cp -f "${USER_UP_PATH}/${MODEL}.dts" "${RAMDISK_PATH}/addons/model.dts"
|
[ -f "${USER_UP_PATH}/${MODEL}.dts" ] && cp -f "${USER_UP_PATH}/${MODEL}.dts" "${RAMDISK_PATH}/addons/model.dts"
|
||||||
fi
|
fi
|
||||||
installAddon "${ADDON}" "${PLATFORM}" "${KPRE:+${KPRE}-}${KVER}" || exit 1
|
installAddon "${ADDON}" "${PLATFORM}" "${KPRE:+${KPRE}-}${KVER}" || exit 1
|
||||||
|
@ -45,13 +45,6 @@
|
|||||||
- "TQR"
|
- "TQR"
|
||||||
suffix: "alpha"
|
suffix: "alpha"
|
||||||
macpre: 9009d0
|
macpre: 9009d0
|
||||||
"DS925+":
|
|
||||||
prefix:
|
|
||||||
- "2520"
|
|
||||||
middle:
|
|
||||||
- "YHR"
|
|
||||||
suffix: "alpha"
|
|
||||||
macpre: 9009d0
|
|
||||||
"DS1019+":
|
"DS1019+":
|
||||||
prefix:
|
prefix:
|
||||||
- "1850"
|
- "1850"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user