Moved to slp format

This commit is contained in:
2020-08-23 20:58:45 -05:00
parent ef86e5391e
commit ea767638d0
5 changed files with 11 additions and 10 deletions

3
SL/README Normal file
View 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
View 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

21
SL/usher Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
set -e
case $1 in
preinst)
exit 0
;;
postinst)
if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i \
/proc/1/root 2>/dev/null)" ]; then
/etc/init.d/udevd restart
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac