Skip to content

Commit

Permalink
Fix various bugs in scripts: mostly comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed May 2, 2017
1 parent 6feb5e1 commit c8246ec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package/root/usr/local/sbin/install_i3_desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if [ ! -d /usr/share/slim/themes/pine64 ]; then
cp -ra /usr/share/slim/themes/default /usr/share/slim/themes/pine64
wget -O /usr/share/slim/themes/pine64/background.png \
https://github.com/longsleep/build-pine64-image/raw/master/bootlogo/bootlogo-pine64-1366x768.png
sed s/^current_theme(.*)/current_theme pine64/g /etc/slim.conf
sed "s/^current_theme(.*)/current_theme pine64/g" /etc/slim.conf
fi

echo "Done - you should reboot now."
2 changes: 1 addition & 1 deletion package/root/usr/local/sbin/pine64_install_to_emmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ case "$1" in

android-7.0|android-7.1)
REPO="ayufan-pine64/$1"
if [[ "$(cat /etc/pine64_model)" -eq "pinebook" ]]; then
if [[ "$(cat /etc/pine64_model)" == "pinebook" ]]; then
PREFIX="$1-pine-a64-pinebook-v"
else
PREFIX="$1-pine-a64-v"
Expand Down
2 changes: 1 addition & 1 deletion package/root/usr/local/sbin/pine64_upgrade_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [[ "$2" != "android-7.0" ]] && [[ "$2" != "android-7.1" ]]; then
fi

REPO="ayufan-pine64/$2"
if [[ "$(cat /etc/pine64_model)" -eq "pinebook" ]]; then
if [[ "$(cat /etc/pine64_model)" == "pinebook" ]]; then
PREFIX="$2-pine-a64-pinebook-v"
else
PREFIX="$2-pine-a64-v"
Expand Down
4 changes: 2 additions & 2 deletions simpleimage/make_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BOOT="$5"
MODEL="$6"
VARIANT="$7"

if [[ -z "$MODEL" ]]; then
if [ -z "$MODEL" ]; then
MODEL="pine64"
fi

Expand Down Expand Up @@ -283,7 +283,7 @@ EOF
esac
do_chroot systemctl enable cpu-corekeeper
do_chroot systemctl enable ssh-keygen
if [ "$MODEL" -eq "pinebook" ]; then
if [ "$MODEL" = "pinebook" ]; then
do_chroot systemctl enable pinebook-headphones
fi
sed -i 's|After=rc.local.service|#\0|;' "$DEST/lib/systemd/system/[email protected]"
Expand Down

0 comments on commit c8246ec

Please sign in to comment.