Browse Source

Add vibration settings

master
mid-kid 2 years ago
parent
commit
2e0de404b4
  1. 22
      package_vibration.sh
  2. 2
      vibration.files/service.sh

22
package_vibration.sh

@ -0,0 +1,22 @@
#!/bin/sh
set -e
dir=vibration
rm -rf "$dir"
mkdir -p "$dir"
cat > "$dir/module.prop" << EOF
id=vibration
name=Vibration intensity setting
version=1
versionCode=1
author=me
description=
EOF
install -Dm755 vibration.files/service.sh \
"$dir/service.sh"
./package.sh "$dir"
rm -rf "$dir"

2
vibration.files/service.sh

@ -0,0 +1,2 @@
#!/bin/sh
echo 2000 > /sys/class/leds/vibrator/vmax_mv
Loading…
Cancel
Save