File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ _**DO NOT RUN THIS ON LATER VERSIONS!!!**_
1010
1111### Usage:
1212
13- ` curl -sSL https://raw.githubusercontent.com/mainsail-crew/MainsailOS/develop/patches/patch .sh | bash `
13+ ` curl -sSL https://raw.githubusercontent.com/mainsail-crew/MainsailOS/develop/patches/patch101 .sh | bash `
1414
1515This will ask you for sudo password!
1616
1717In most cases a reboot is required!
1818
1919## udev-fix.sh
2020
21- This is intended to patch udev rules which has a Bug in udev package (version: 247.3-7+deb11u2).
21+ This is intended to patch udev rules which has a Bug in udev package (version: 247.3-7+deb11u2 or 247.3-7+rpi1+deb11u2 ).
2222Which does not create ` /dev/serial/by-id ` symlinks for your MCU.\
2323For further details see:
2424
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ print_footer(){
7474# Patch Funcs
7575
7676patch_udev (){
77- if [[ -n " ${UDEV_PKG_VERSION} " ]] && [[ " ${UDEV_PKG_VERSION} " = " 247.3-7+ deb11u2" ]]; then
77+ if [[ -n " ${UDEV_PKG_VERSION} " ]] && [[ " ${UDEV_PKG_VERSION} " =~ " deb11u2" ]]; then
7878 echo_red " 'udev' version: ${UDEV_PKG_VERSION} , is affected by bug ..."
7979 echo_green " Install patched udev rule from systemd git repository ..."
8080 curl -sSL " ${UDEV_FIX_RAW_RULE_FILE} " > " ${UDEV_FIX_TMP_FILE} "
Original file line number Diff line number Diff line change 3838# Step 2: Fix broken udev (remove after debian releases patch)
3939UDEV_PKG_VERSION=" $( dpkg-query -s udev | grep " Version" | sed ' s/Version\: //' ) "
4040
41- if [[ -n " ${UDEV_PKG_VERSION} " ]] && [[ " ${UDEV_PKG_VERSION} " = " 247.3-7+ deb11u2" ]]; then
41+ if [[ -n " ${UDEV_PKG_VERSION} " ]] && [[ " ${UDEV_PKG_VERSION} " =~ " deb11u2" ]]; then
4242 echo_red " 'udev' version: ${UDEV_PKG_VERSION} , is affected by bug ..."
4343 echo_green " Install patched udev rule from systemd git repository ..."
4444 curl -sSL " ${UDEV_FIX_RAW_RULE_FILE} " > " ${UDEV_FIX_OUTPUT_FILE} "
You can’t perform that action at this time.
0 commit comments