mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
[PATCH] add replace test
This commit is contained in:
14
test/replace_test
Normal file
14
test/replace_test
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
export UDEV_TEST=yes
|
||||
export SYSFS_PATH=$PWD/sys/
|
||||
export UDEV_CONFIG_DIR=$PWD/
|
||||
export UDEV_ROOT=$PWD/udev/
|
||||
export UDEV_DB=udev.tdb
|
||||
export UDEV_CONFIG_FILE=replace_test.config
|
||||
export UDEV_PERMISSION_FILE=udev.permissions
|
||||
|
||||
export DEVPATH=class/tty/ttyUSB0
|
||||
export ACTION=add
|
||||
|
||||
../udev tty
|
||||
3
test/replace_test.config
Normal file
3
test/replace_test.config
Normal file
@@ -0,0 +1,3 @@
|
||||
# REPLACE test
|
||||
REPLACE, KERNEL="ttyUSB0", NAME="visor"
|
||||
|
||||
Reference in New Issue
Block a user