various updates
This commit is contained in:
parent
cb72035bfd
commit
28bcb8b3eb
@ -47,10 +47,16 @@ if ! command -v "${TEXT_EDITOR}" >/dev/null 2>&1; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${TEXT_EDITOR} /etc/modprobe.d/${OPTIONS_FILE}
|
if [ -f "/etc/modprobe.d/${OPTIONS_FILE}" ]; then
|
||||||
|
${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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user