update script

This commit is contained in:
Frede Hundewadt 2023-08-29 16:50:41 +02:00
parent 353772ed77
commit 664c6ab1d8
3 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
pkgbase = udev-usb-sync
pkgdesc = Fine tune write cache when USB storage device is plugged
pkgver = 0.4
pkgver = 0.5
pkgrel = 1
url = https://codeberg.org/wonky/udev-usb-sync
install = udev-usb-sync.install
@ -13,7 +13,7 @@ pkgbase = udev-usb-sync
source = udev-usb-sync
source = udev-usb-sync.conf
sha256sums = be08224041008876efb09e6b2a119d6f42b911efecf0563be413f9ff2d33a7b3
sha256sums = 2669e043722b33009798c8c30f48414e1eaad0f001631587f502b19a2f11feb7
sha256sums = 0c60b841dd18521130eb22e18bf62bb5bf3dcf124e64dd7a6764aaf5af972eea
sha256sums = bc902da2c453355e1dbc3a970a564daf71d41c6278dc771a930aa3badb90e453
pkgname = udev-usb-sync

View file

@ -1,6 +1,6 @@
# Maintainer: root.nix.dk
pkgname='udev-usb-sync'
pkgver=0.4
pkgver=0.5
pkgrel=1
pkgdesc='Fine tune write cache when USB storage device is plugged'
arch=('any')
@ -12,7 +12,7 @@ backup=("etc/${pkgname}/${pkgname}.conf")
install=${pkgname}.install
source=('99-usb-sync.rules' 'udev-usb-sync' 'udev-usb-sync.conf')
sha256sums=('be08224041008876efb09e6b2a119d6f42b911efecf0563be413f9ff2d33a7b3'
'2669e043722b33009798c8c30f48414e1eaad0f001631587f502b19a2f11feb7'
'0c60b841dd18521130eb22e18bf62bb5bf3dcf124e64dd7a6764aaf5af972eea'
'bc902da2c453355e1dbc3a970a564daf71d41c6278dc771a930aa3badb90e453')
package() {

View file

@ -21,6 +21,6 @@ if [[ -z "$1" ]]; then
exit 1
fi
echo "$max_bytes" > "/dev/block/$1/bdi/max_bytes"
echo "$max_ration" > "/dev/block/$1/bdi/max_ratio"
echo "$strict_limit" > "/dev/block/$1/bdi/strict_limit"
echo "$max_bytes" > "/sys/block/$1/bdi/max_bytes"
echo "$max_ration" > "/sys/block/$1/bdi/max_ratio"
echo "$strict_limit" > "/sys/block/$1/bdi/strict_limit"