various updates

This commit is contained in:
morrownr 2023-07-20 15:11:40 -05:00
parent cb72035bfd
commit 28bcb8b3eb
3 changed files with 14 additions and 7 deletions

View File

@ -47,10 +47,16 @@ if ! command -v "${TEXT_EDITOR}" >/dev/null 2>&1; then
exit 1 exit 1
fi fi
if [ -f "/etc/modprobe.d/${OPTIONS_FILE}" ]; then
${TEXT_EDITOR} /etc/modprobe.d/${OPTIONS_FILE} ${TEXT_EDITOR} /etc/modprobe.d/${OPTIONS_FILE}
else
cp -f ${OPTIONS_FILE} /etc/modprobe.d
${TEXT_EDITOR} /etc/modprobe.d/${OPTIONS_FILE}
fi
printf "Do you want to apply the new options by rebooting now? (recommended) [y/N] " printf "Do you want to apply the new options by rebooting now? (recommended) [Y/n] "
read -r REPLY read -r yn
case "$REPLY" in case "$yn" in
[yY]*) reboot ;; [nN]) ;;
*) reboot ;;
esac esac

View File

@ -405,7 +405,7 @@ int rtw_regd_init(struct wiphy *wiphy)
wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS; wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS;
#endif #endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 5, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 4))
wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF; wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
#endif #endif

View File

@ -25,7 +25,7 @@ fi
# deletes existing log # deletes existing log
rm -f -- rtw.log rm -f -- rtw.log
dmesg | cut -d"]" -f2- | grep "RTW" >> rtw.log dmesg | cut -d"]" -f2- | grep -i RTW >> rtw.log
RESULT=$? RESULT=$?
if [ "$RESULT" != "0" ]; then if [ "$RESULT" != "0" ]; then
@ -33,5 +33,6 @@ if [ "$RESULT" != "0" ]; then
echo "Did you set a log level > 0 ?" echo "Did you set a log level > 0 ?"
exit 1 exit 1
else else
# dmesg | cut -d"]" -f2- | grep -i USB >> rtw.log
echo "rtw.log saved successfully." echo "rtw.log saved successfully."
fi fi