mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
fix
This commit is contained in:
parent
bf6924095f
commit
cbc4253ca6
@ -2,7 +2,7 @@
|
|||||||
_pkgname=rotate
|
_pkgname=rotate
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.4
|
pkgver=0.0.5
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Scripts to automate screen rotation"
|
pkgdesc="Scripts to automate screen rotation"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -23,6 +23,10 @@ case "${ORIENTATION_STR}" in
|
|||||||
*": left-up"*)
|
*": left-up"*)
|
||||||
ORIENTATION="right";
|
ORIENTATION="right";
|
||||||
;;
|
;;
|
||||||
|
*": undefined"*)
|
||||||
|
echo "The orientation could not yet be determined. Please rotate the device a bit and try again."
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Could not parse ORIENTATION_STR!";
|
echo "Could not parse ORIENTATION_STR!";
|
||||||
echo "${ORIENTATION_STR}";
|
echo "${ORIENTATION_STR}";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# @post: $SCREEN variable and $DEVICES array are set
|
# @post: $SCREEN variable and $DEVICES array are set
|
||||||
source /etc/de-1st-rotate/config.cfg || exit $?
|
source /etc/de-p1st-rotate/config.cfg || exit $?
|
||||||
|
|
||||||
if [ "$#" -ne "1" ]; then
|
if [ "$#" -ne "1" ]; then
|
||||||
echo "usage: $0 ORIENTATION";
|
echo "usage: $0 ORIENTATION";
|
||||||
|
Loading…
Reference in New Issue
Block a user