UNVR-NAS/tools/mtd-lock
Chris Blake 02258ae02f fix: increase count of mtd partitions to set ro
UNVR with USB drive has 10 on SPI, so we need to make sure we cover them all.
2024-06-16 13:55:44 -05:00
..
Kbuild fix: improvements across the board 2024-06-16 13:50:44 -05:00
README.md fix: improvements across the board 2024-06-16 13:50:44 -05:00
ubnt-mtd-lock.c fix: increase count of mtd partitions to set ro 2024-06-16 13:55:44 -05:00

mtd-lock

A stupid basic kernel module to ensure we set /dev/mtd as RO (fully) in our firmware. This is done to prevent users/bad actors from wiping your bootloader/Unifi EEPROM, which are required for your device to function!

Building

make -C ${kernel_source_dir} M=$PWD

License

This code is licensed under the GNU General Public License, version 2. A copy of said license can be found at https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html#SEC1