The following changes were made:
* Added REPO * Moved usher from bash to /bin/sh * Removed TARGET from usher
This commit is contained in:
12
SNAP/usher
12
SNAP/usher
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
@@ -7,14 +7,12 @@ case $1 in
|
||||
exit 0
|
||||
;;
|
||||
postinst)
|
||||
if [ ! -f ${TARGET}/etc/modprobe.d/blacklist.conf ]; then
|
||||
cp ${TARGET}/usr/share/kmod/blacklist.conf \
|
||||
${TARGET}/etc/modprobe.d/blacklist.conf
|
||||
if [ ! -f /etc/modprobe.d/blacklist.conf ]; then
|
||||
cp /usr/share/kmod/blacklist.conf /etc/modprobe.d/blacklist.conf
|
||||
fi
|
||||
|
||||
if [ ! -f ${TARGET}/etc/modprobe.d/usb.conf ]; then
|
||||
cp ${TARGET}/usr/share/kmod/usb.conf \
|
||||
${TARGET}/etc/modprobe.d/usb.conf
|
||||
if [ ! -f /etc/modprobe.d/usb.conf ]; then
|
||||
cp /usr/share/kmod/usb.conf /etc/modprobe.d/usb.conf
|
||||
fi
|
||||
;;
|
||||
prerm)
|
||||
|
||||
Reference in New Issue
Block a user