mirror of
https://codeberg.org/wonky/udev-usb-sync.git
synced 2024-09-19 15:30:35 +02:00
update install
This commit is contained in:
parent
8e3f2a561e
commit
518ee1000c
3 changed files with 4 additions and 4 deletions
|
@ -9,4 +9,4 @@ ACTION=="add|change", KERNEL=="sd[a-z]", ENV{ID_USB_TYPE}=="disk", RUN+="/usr/bi
|
|||
# https://docs.kernel.org/admin-guide/abi-testing.html#abi-sys-class-bdi-bdi-max-bytes
|
||||
# implemented using /usr/bin/udev-usb-tweak.sh
|
||||
# optional configuration in /etc/udev-usb-tweak/udev-usb-tweak.sh
|
||||
ACTION=="add|change", KERNEL=="sd[a-z]", ENV{ID_USB_TYPE}=="disk", RUN+=/usr/bin/udev-usb-sync.sh %k"
|
||||
ACTION=="add|change", KERNEL=="sd[a-z]", ENV{ID_USB_TYPE}=="disk", RUN+=/usr/bin/udev-usb-sync.sh %k"
|
||||
|
|
4
PKGBUILD
4
PKGBUILD
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: root.nix.dk
|
||||
pkgname='udev-usb-sync'
|
||||
pkgver=0.3
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc='Fine tune write cache when USB storage device is plugged'
|
||||
arch=('any')
|
||||
url='https://codeberg.org/wonky/udev-usb-sync'
|
||||
|
@ -20,6 +20,6 @@ package() {
|
|||
install -d -m755 $pkgdir/etc/$pkgname
|
||||
install -d -m755 $pkgdir/usr/bin
|
||||
cp ${srcdir}/99-usb-sync.rules "${pkgdir}/etc/udev/rules.d"
|
||||
cp ${srcdir}/${pkgname}.sh "${pkgdir}/usr/bin"
|
||||
cpwh ${srcdir}/${pkgname}.sh "${pkgdir}/usr/bin"
|
||||
cp ${srcdir}/${pkgname}.conf "${pkgdir}/etc/${pkgname}"
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ max_ration=50
|
|||
strict_limit=1
|
||||
|
||||
# read user config
|
||||
source /etc/tweak-usb/tweaks.conf
|
||||
source /etc/usb-dev-sync/usb-dev-sync.conf
|
||||
|
||||
if [[ "$use_tweaks" = 0 ]]; then
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue