Skip to content

Commit 228f89a

Browse files
author
davidgao
committed
20130308a
1 parent 10dc1fd commit 228f89a

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

clean.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/bin/bash
22

33
rm `find . | grep '~$'`
4+
rm fop.log
5+

udev-lfs/55-lfs.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Purpose of rules file:
2+
3+
Most of the rules installed by Udev itself create devices with the correct
4+
properties. This file contains rules that have not been merged upstream yet.
5+
6+
Description of rules:
7+
8+
By default, Udev creates device nodes with UID 0, GID 0, and permissions 0660.
9+
10+
ISDN-related devices should be owned by the 'dialout' group, hence the following
11+
rule (and similar):
12+
13+
KERNEL=="ippp[0-9]*", GROUP="dialout"
14+
15+
The RTC-related rules cause the setclock bootscript to be run as soon as the
16+
RTC device has been created by Udev, meaning that times in log files, for
17+
example, are as accurate as possible as quickly as possible.
18+
19+
A final word of caution: Any particular rule must be written on one line, and a
20+
comma must separate each part of the rule.

udev-lfs/81-cdrom.rules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# /etc/udev/rules.d/81-cdrom.rules: Set CD-ROM permissions and get device capabilities
2+
3+
ACTION=="add", SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", IMPORT{program}="cdrom_id --export $tempnode", GROUP="cdrom"

udev-lfs/83-cdrom-symlinks.rules

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# /etc/udev/rules.d/83-cdrom-symlinks.rules: Determine CD drive capability.
2+
3+
ACTION!="add", GOTO="cd_aliases_generator_end"
4+
SUBSYSTEM!="block", GOTO="cd_aliases_generator_end"
5+
ENV{GENERATED}=="?*", GOTO="cd_aliases_generator_end"
6+
7+
# Fail the uevent if the autogenerated rules cannot be saved
8+
ENV{ID_CDROM}=="?*", PROGRAM="/bin/grep -c ' / [^[:space:]]* rw' /proc/mounts", \
9+
RESULT!="2", RUN+="/bin/false", GOTO="cd_aliases_generator_end"
10+
11+
ENV{ID_CDROM}=="?*", PROGRAM="write_cd_rules", SYMLINK+="%c"
12+
13+
LABEL="cd_aliases_generator_end"

0 commit comments

Comments
 (0)