1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/tools/mknod_mtd.sh
2024-07-22 01:58:46 -03:00

16 lines
225 B
Bash
Executable File

#!/bin/sh
if [ $# != 2 ] ; then
echo "usage: $0 [num] [filesystem_dir]"
exit 0
fi
i=0
j=0
while [ $i -lt $1 ]
do
j=`expr $i \* 2`
mknod $2/dev/mtd$i c 90 $j
mknod $2/dev/mtdblock$i b 31 $i
i=`expr $i + 1`
done
exit 0