Moved to slp format
This commit is contained in:
3
SL/README
Normal file
3
SL/README
Normal file
@@ -0,0 +1,3 @@
|
||||
This is the directory where the manifest, snapinfo, and files.tar.gz
|
||||
files will be created. It is also where the usher file should be
|
||||
placed if it is required by the package.
|
||||
38
SL/udevd.init
Executable file
38
SL/udevd.init
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: udev $time
|
||||
# Required-Start:
|
||||
# Required-Stop:
|
||||
# Should-Start: mountvirtfs
|
||||
# Should-Stop:
|
||||
# Default-Start: S
|
||||
# Default-Stop:
|
||||
# Short-Description: Populate /dev and load kernel modules
|
||||
# X-Required: true
|
||||
### END INIT INFO
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
log_init_msg "Starting udevd"
|
||||
/sbin/udevd --daemon || error=1
|
||||
|
||||
/sbin/udevadm trigger --action=add --type=subsystems || error=1
|
||||
/sbin/udevadm trigger --action=add --type=devices || error=1
|
||||
/sbin/udevadm trigger --action=change --type=devices || error=1
|
||||
/sbin/udevadm settle
|
||||
|
||||
[ -z $error ] && log_success_msg || log_failure_msg
|
||||
;;
|
||||
restart)
|
||||
log_init_msg "Reloading udev"
|
||||
udevadm control --reload-rules && udevadm trigger && \
|
||||
log_success_msg || log_failure_msg
|
||||
;;
|
||||
*)
|
||||
echo "Usage $0 [start|stop|restart]"
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user