mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-23 07:29:30 +07:00
[PATCH] make a net_test test script using udevtest.
This commit is contained in:
parent
ce4256bdc5
commit
cfdfda1078
@ -8,8 +8,7 @@ export SYSFS_PATH=$PWD/sys/
|
|||||||
export UDEV_CONFIG_FILE=$PWD/$CONFIG
|
export UDEV_CONFIG_FILE=$PWD/$CONFIG
|
||||||
|
|
||||||
cat > $RULES << EOF
|
cat > $RULES << EOF
|
||||||
BUS="scsi", SYSFS{vendor}="IBM-ESXS", SYSFS{model}="ST336605LW !#", NAME="boot_diskX%n"
|
SYSFS{address}="00:e0:00:8d:9f:25", NAME="wireless"
|
||||||
BUS="scsi", SYSFS{vendor}="IBM-ESXS", SYSFS{model}="ST336605LW !#", NAME="boot_disk%n"
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > $CONFIG << EOF
|
cat > $CONFIG << EOF
|
||||||
@ -22,28 +21,17 @@ EOF
|
|||||||
mkdir udev
|
mkdir udev
|
||||||
|
|
||||||
export ACTION=add
|
export ACTION=add
|
||||||
export DEVPATH=block/sda
|
export DEVPATH=class/net/eth1
|
||||||
|
|
||||||
../udev block
|
../udevtest class/net/eth1 net
|
||||||
ls -l udev
|
|
||||||
|
|
||||||
export DEVPATH=block/sda/sda3
|
|
||||||
|
|
||||||
../udev block
|
|
||||||
ls -l udev
|
ls -l udev
|
||||||
|
|
||||||
export ACTION=remove
|
export ACTION=remove
|
||||||
export DEVPATH=block/sda
|
export DEVPATH=class/net/eth1
|
||||||
|
|
||||||
../udev block
|
../udevtest net
|
||||||
ls -l udev
|
ls -l udev
|
||||||
|
|
||||||
export DEVPATH=block/sda/sda3
|
|
||||||
|
|
||||||
../udev block
|
|
||||||
ls -l udev
|
|
||||||
|
|
||||||
|
|
||||||
rm $RULES
|
rm $RULES
|
||||||
rm $CONFIG
|
rm $CONFIG
|
||||||
rm -rf udev
|
rm -rf udev
|
||||||
|
Loading…
Reference in New Issue
Block a user