REDROOM
PHP 8.5.2
Path:
Logout
Edit File
Size: 625 B
Close
//usr/share/doc/busybox-static/examples/mdev.conf.change_blockdev.sh
Text
Base64
#!/bin/sh # Seconds to try to reread partition table cnt=60 exec </dev/null exec >"/tmp/${0##*/}.$$.out" exec 2>&1 ( echo "Running: $0" echo "Env:" env | sort while sleep 1; test $cnt != 0; do echo "Trying to reread partition table on $DEVNAME ($cnt)" cnt=$((cnt-1)) # If device node doesn't exist, it means the device was removed. # Stop trying. test -e "$DEVNAME" || { echo "$DEVNAME doesn't exist, aborting"; exit 1; } #echo "$DEVNAME exists" if blockdev --rereadpt "$DEVNAME"; then echo "blockdev --rereadpt succeeded" exit 0 fi echo "blockdev --rereadpt failed, exit code: $?" done echo "Timed out" ) &
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
udhcp
DIR
-
drwxr-xr-x
2026-01-08 12:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mdev.conf
914 B
lrw-r--r--
2021-01-01 10:52:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mdev.conf.change_blockdev.sh
625 B
lrwxr-xr-x
2021-01-01 10:52:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mdev_fat.conf
5.66 KB
lrw-r--r--
2021-01-01 10:52:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).