You can just do this then:I'm getting this error message when running the script.
Code:Backing up cut: applet not found (cut: applet not found) cp: can't stat '/dev/cut: applet not foundro': No such file or directory
Looks like cut isn't enabled in busybox.
Code:Currently defined functions: [, [[, ash, bash, cat, chmod, cp, dmesg, echo, egrep, env, fgrep, fsync, getty, grep, halt, ifconfig, init, insmod, ip, ipaddr, iplink, iproute, iprule, iptunnel, kill, killall, linuxrc, ln, login, ls, lsmod, lzcat, lzma, mkdir, mknod, mount, mv, netstat, ping, ping6, poweroff, ps, pwd, reboot, rm, rmmod, route, sed, seq, sh, sleep, sync, telnet, telnetd, test, tftp, tftpd, top, touch, ubiattach, ubidetach, ubimkvol, ubirmvol, ubirsvol, ubiupdatevol, udhcpc, umount, unlzma, unzip
cat /proc/mtd returns:
Code:/var/tmp/nfs1 # cat /proc/mtd dev: size erasesize name mtd0: 00040000 00010000 "MinBoot" mtd1: 00040000 00010000 "U-Boot" mtd2: 00020000 00010000 "hwid" mtd3: 00010000 00010000 "partition" mtd4: 00180000 00010000 "Kernel" mtd5: 00150000 00010000 "romfs" mtd6: 00210000 00010000 "web" mtd7: 00830000 00010000 "user" mtd8: 00030000 00010000 "updateflag" mtd9: 00070000 00010000 "config" mtd10: 00010000 00010000 "product" mtd11: 00020000 00010000 "custom" mtd12: 000e0000 00010000 "backupker" mtd13: 00050000 00010000 "backupfs"
Code:
cp "/dev/mtd0ro" "./mtd0_MinBoot"
cp "/dev/mtd1ro" "./mtd1_U-Boot"
cp "/dev/mtd2ro" "./mtd2_hwid"
cp "/dev/mtd3ro" "./mtd3_partition"
cp "/dev/mtd4ro" "./mtd4_Kernel"
cp "/dev/mtd5ro" "./mtd5_romfs"
cp "/dev/mtd6ro" "./mtd6_web"
cp "/dev/mtd7ro" "./mtd7_user"
cp "/dev/mtd8ro" "./mtd8_updateflag"
cp "/dev/mtd9ro" "./mtd9_config"
cp "/dev/mtd10ro" "./mtd10_product"
cp "/dev/mtd11ro" "./mtd11_custom"
cp "/dev/mtd12ro" "./mtd12_backupker"
cp "/dev/mtd13ro" "./mtd13_backupfs"