Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b45797b2f |
2
Makefile
2
Makefile
@@ -15,7 +15,7 @@ export URL = http://www.gentoo.org/proj/en/eudev/
|
|||||||
BRIEF = Fork of udev
|
BRIEF = Fork of udev
|
||||||
DESC = eudev is a fork of system-udev with the goal of obtaining better \
|
DESC = eudev is a fork of system-udev with the goal of obtaining better \
|
||||||
compatibility with existing software
|
compatibility with existing software
|
||||||
SNAPVER = 4
|
SNAPVER = 5
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
|
|||||||
@@ -3,18 +3,19 @@
|
|||||||
# Provides: udev $time
|
# Provides: udev $time
|
||||||
# Required-Start:
|
# Required-Start:
|
||||||
# Required-Stop:
|
# Required-Stop:
|
||||||
# Should-Start: modules mountkernfs
|
# Should-Start: modules mountvirtfs
|
||||||
# Should-Stop:
|
# Should-Stop:
|
||||||
# Default-Start: S
|
# Default-Start: S
|
||||||
# Default-Stop:
|
# Default-Stop:
|
||||||
# Short-Description: Populate /dev and load kernel modules
|
# Short-Description: Populate /dev and load kernel modules
|
||||||
|
# X-Required: true
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
. /lib/lsb/init-functions
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
log_info_msg "Starting udevd"
|
log_init_msg "Starting udevd"
|
||||||
/sbin/udevd --daemon || error=1
|
/sbin/udevd --daemon || error=1
|
||||||
|
|
||||||
/sbin/udevadm trigger --action=add --type=subsystems || error=1
|
/sbin/udevadm trigger --action=add --type=subsystems || error=1
|
||||||
@@ -25,7 +26,7 @@ case "$1" in
|
|||||||
[ -z $error ] && log_success_msg || log_failure_msg
|
[ -z $error ] && log_success_msg || log_failure_msg
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
log_info_msg "Reloading udev"
|
log_init_msg "Reloading udev"
|
||||||
udevadm control --reload-rules && udevadm trigger && \
|
udevadm control --reload-rules && udevadm trigger && \
|
||||||
log_success_msg || log_failure_msg
|
log_success_msg || log_failure_msg
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user