mid-kid
2 years ago
2 changed files with 24 additions and 0 deletions
@ -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" |
@ -0,0 +1,2 @@ |
|||||
|
#!/bin/sh |
||||
|
echo 2000 > /sys/class/leds/vibrator/vmax_mv |
Loading…
Reference in new issue