Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (11 sloc) 291 Bytes
#!/bin/bash
set -e
[ -z "$EDITOR" ] && EDITOR=vi
PREFS_JS=$(adb shell echo -n "/data/b2g/mozilla/*.default")/prefs.js
echo "Pulling preferences: $PREFS_JS"
adb pull $PREFS_JS
$EDITOR prefs.js
echo "Pushing and restarting"
adb shell stop b2g
adb push prefs.js $PREFS_JS
adb shell start b2g