Browse Source

- mdev: proper script-names for a proper logging

master
vanhofen 8 years ago
parent
commit
cc374457fa
  1. 35
      skel-root/coolstream/hd1/etc/mdev.conf
  2. 0
      skel-root/coolstream/hd1/lib/mdev/common/mdev-log-only
  3. 0
      skel-root/coolstream/hd1/lib/mdev/common/mdev-modprobe
  4. 2
      skel-root/coolstream/hd1/lib/mdev/common/mdev-module
  5. 0
      skel-root/coolstream/hd1/lib/mdev/fs/mdev-mount
  6. 0
      skel-root/coolstream/hd1/lib/mdev/net/mdev-wlan
  7. 0
      skel-root/coolstream/hd1/lib/mdev/usb/coldplug-setenv
  8. 4
      skel-root/coolstream/hd1/lib/mdev/usb/mdev-usb
  9. 37
      skel-root/coolstream/hd2/etc/mdev.conf
  10. 0
      skel-root/coolstream/hd2/lib/mdev/common/mdev-log-only
  11. 0
      skel-root/coolstream/hd2/lib/mdev/common/mdev-modprobe
  12. 2
      skel-root/coolstream/hd2/lib/mdev/common/mdev-module
  13. 0
      skel-root/coolstream/hd2/lib/mdev/fs/mdev-mount
  14. 0
      skel-root/coolstream/hd2/lib/mdev/net/mdev-wlan
  15. 0
      skel-root/coolstream/hd2/lib/mdev/usb/coldplug-setenv
  16. 4
      skel-root/coolstream/hd2/lib/mdev/usb/mdev-usb

35
skel-root/coolstream/hd1/etc/mdev.conf

@ -1,13 +1,16 @@
# Provide user, group, and mode information for devices. If a regex matches
# the device name provided by sysfs, use the appropriate user:group and mode
# instead of the default 0:0 660.
#
# /etc/mdev.conf
# Syntax:
# [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...]
# [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
# [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
# [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
#
# [-]: do not stop on this match, continue reading mdev.conf
# =: move, >: move and create a symlink
# @|$|*: run $cmd on delete, @cmd on create, *cmd on both
# !: do not create device node
# @|$|*: run cmd if $ACTION=remove, @cmd if $ACTION=add, *cmd in all cases
# Support module loading on hotplug
#$MODALIAS=.* root:root 0660 @/bin/busybox modprobe "$MODALIAS"
null root:root 0666
@ -32,24 +35,24 @@ mice root:root 0640 =input/
mouse[0-9]+ root:root 0640 =input/
# USB devices
[0-3]-.*:1.0 root:root 0660 */lib/mdev/usb/usbcontrol
[0-3]-.*:1.0 root:root 0660 */lib/mdev/usb/mdev-usb
# Mass-storage devices
sd[a-z][0-9] root:root 0664 */lib/mdev/fs/mount
sd[a-z][0-9] root:root 0664 */lib/mdev/fs/mdev-mount
# Disc devices
sr[0-9] root:root 0664 */lib/mdev/fs/mount
sr[0-9] root:root 0664 */lib/mdev/fs/mdev-mount
# WLAN devices
ra[0-9]* root:root 0644 */lib/mdev/net/wlan
rausb[0-9]* root:root 0644 */lib/mdev/net/wlan
wlan[0-9]* root:root 0644 */lib/mdev/net/wlan
ra[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
rausb[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
wlan[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
# block devices: group -> disk
# Block devices: group -> disk
mtdblock[0-9] root:root 0600
# double up flash characters devices
# Double up flash characters devices
mtd[0-9]+ root:root 0600
mtd[0-9]+ro root:root 0600
# everything else
.* root:root 0600 */lib/mdev/common/mdevlog
# Log all other devices. Right now useful only for debuging.
.* root:root 0600 */lib/mdev/common/mdev-log-only

0
skel-root/coolstream/hd1/lib/mdev/common/mdevlog → skel-root/coolstream/hd1/lib/mdev/common/mdev-log-only

0
skel-root/coolstream/hd1/lib/mdev/common/mdevprobe → skel-root/coolstream/hd1/lib/mdev/common/mdev-modprobe

2
skel-root/coolstream/hd1/lib/mdev/common/mdevmodule → skel-root/coolstream/hd1/lib/mdev/common/mdev-module

@ -3,4 +3,4 @@
. /etc/init.d/globals
LOGINFO "${ACTION:-scan} module chain $@"
/lib/mdev/common/mdevprobe "$@"
/lib/mdev/common/mdev-modprobe "$@"

0
skel-root/coolstream/hd1/lib/mdev/fs/mount → skel-root/coolstream/hd1/lib/mdev/fs/mdev-mount

0
skel-root/coolstream/hd1/lib/mdev/net/wlan → skel-root/coolstream/hd1/lib/mdev/net/mdev-wlan

0
skel-root/coolstream/hd1/lib/mdev/usb/eventvars → skel-root/coolstream/hd1/lib/mdev/usb/coldplug-setenv

4
skel-root/coolstream/hd1/lib/mdev/usb/usbcontrol → skel-root/coolstream/hd1/lib/mdev/usb/mdev-usb

@ -3,7 +3,7 @@
. /etc/init.d/globals
# setup environment for coldplug events
[ -z "$ACTION" ] && . /lib/mdev/usb/eventvars
[ -z "$ACTION" ] && . /lib/mdev/usb/coldplug-setenv
# get proper product and manufacturer description (only works for ACTION=add)
[ -z "$DEVPATH" ] && LOGERROR 'uevent environment variable DEVPATH is unset' && exit 1
@ -116,4 +116,4 @@ case $TYPE in
;;
esac
/lib/mdev/common/mdevprobe $MODALIAS
/lib/mdev/common/mdev-modprobe $MODALIAS

37
skel-root/coolstream/hd2/etc/mdev.conf

@ -1,13 +1,16 @@
# Provide user, group, and mode information for devices. If a regex matches
# the device name provided by sysfs, use the appropriate user:group and mode
# instead of the default 0:0 660.
#
# /etc/mdev.conf
# Syntax:
# [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...]
# [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
# [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
# [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...]
#
# [-]: do not stop on this match, continue reading mdev.conf
# =: move, >: move and create a symlink
# @|$|*: run $cmd on delete, @cmd on create, *cmd on both
# !: do not create device node
# @|$|*: run cmd if $ACTION=remove, @cmd if $ACTION=add, *cmd in all cases
# Support module loading on hotplug
#$MODALIAS=.* root:root 0660 @/bin/busybox modprobe "$MODALIAS"
null root:root 0666
@ -32,26 +35,26 @@ mice root:root 0640 =input/
mouse[0-9]+ root:root 0640 =input/
# USB devices
[0-3]-.*:1.0 root:root 0660 */lib/mdev/usb/usbcontrol
[0-3]-.*:1.0 root:root 0660 */lib/mdev/usb/mdev-usb
# Mass-storage devices
sd[a-z][0-9] root:root 0664 */lib/mdev/fs/mount
sd[a-z][0-9] root:root 0664 */lib/mdev/fs/mdev-mount
# Disc devices
sr[0-9] root:root 0664 */lib/mdev/fs/mount
sr[0-9] root:root 0664 */lib/mdev/fs/mdev-mount
# Memory cards
mmcblk[0-9]p[0-9] root:root 0664 */lib/mdev/fs/mount
mmcblk[0-9]p[0-9] root:root 0664 */lib/mdev/fs/mdev-mount
# WLAN devices
ra[0-9]* root:root 0644 */lib/mdev/net/wlan
rausb[0-9]* root:root 0644 */lib/mdev/net/wlan
wlan[0-9]* root:root 0644 */lib/mdev/net/wlan
ra[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
rausb[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
wlan[0-9]* root:root 0644 */lib/mdev/net/mdev-wlan
# block devices: group -> disk
# Block devices: group -> disk
mtdblock[0-9] root:root 0600
# double up flash characters devices
# Double up flash characters devices
mtd[0-9]+ root:root 0600
mtd[0-9]+ro root:root 0600
# everything else
.* root:root 0600 */lib/mdev/common/mdevlog
# Log all other devices. Right now useful only for debuging.
.* root:root 0600 */lib/mdev/common/mdev-log-only

0
skel-root/coolstream/hd2/lib/mdev/common/mdevlog → skel-root/coolstream/hd2/lib/mdev/common/mdev-log-only

0
skel-root/coolstream/hd2/lib/mdev/common/mdevprobe → skel-root/coolstream/hd2/lib/mdev/common/mdev-modprobe

2
skel-root/coolstream/hd2/lib/mdev/common/mdevmodule → skel-root/coolstream/hd2/lib/mdev/common/mdev-module

@ -3,4 +3,4 @@
. /etc/init.d/globals
LOGINFO "${ACTION:-scan} module chain $@"
/lib/mdev/common/mdevprobe "$@"
/lib/mdev/common/mdev-modprobe "$@"

0
skel-root/coolstream/hd2/lib/mdev/fs/mount → skel-root/coolstream/hd2/lib/mdev/fs/mdev-mount

0
skel-root/coolstream/hd2/lib/mdev/net/wlan → skel-root/coolstream/hd2/lib/mdev/net/mdev-wlan

0
skel-root/coolstream/hd2/lib/mdev/usb/eventvars → skel-root/coolstream/hd2/lib/mdev/usb/coldplug-setenv

4
skel-root/coolstream/hd2/lib/mdev/usb/usbcontrol → skel-root/coolstream/hd2/lib/mdev/usb/mdev-usb

@ -3,7 +3,7 @@
. /etc/init.d/globals
# setup environment for coldplug events
[ -z "$ACTION" ] && . /lib/mdev/usb/eventvars
[ -z "$ACTION" ] && . /lib/mdev/usb/coldplug-setenv
# get proper product and manufacturer description (only works for ACTION=add)
[ -z "$DEVPATH" ] && LOGERROR 'uevent environment variable DEVPATH is unset' && exit 1
@ -116,4 +116,4 @@ case $TYPE in
;;
esac
/lib/mdev/common/mdevprobe $MODALIAS
/lib/mdev/common/mdev-modprobe $MODALIAS
Loading…
Cancel
Save