OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
doc
/
busybox-static
/
examples
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
12/08/2021 06:32:52 AM
rwxr-xr-x
📄
mdev.conf
914 bytes
07/06/2017 03:14:57 PM
rw-r--r--
📄
mdev.conf.change_blockdev.sh
625 bytes
07/18/2017 05:20:58 PM
rwxr-xr-x
📄
mdev_fat.conf.gz
1.9 KB
07/06/2017 03:14:57 PM
rw-r--r--
📁
udhcp
-
12/08/2021 06:32:52 AM
rwxr-xr-x
Editing: mdev.conf.change_blockdev.sh
Close
#!/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" ) &