Rename the shell helper 'library'...

Because Kate is being stupid.
This commit is contained in:
NiLuJe
2014-08-01 21:41:30 +02:00
parent 5354fead70
commit c25186911b
4 changed files with 9 additions and 10 deletions

View File

@@ -8,8 +8,8 @@
KOREADER_DIR="/mnt/us/koreader"
# Load our helper functions...
if [ -f "${KOREADER_DIR}/libkoreader.inc" ] ; then
source "${KOREADER_DIR}/libkoreader.inc"
if [ -f "${KOREADER_DIR}/libkohelper.sh" ] ; then
source "${KOREADER_DIR}/libkohelper.sh"
else
echo "Can't source helper functions, aborting!"
exit 1

View File

@@ -10,8 +10,8 @@ PROC_FIVEWAY="/proc/fiveway"
KOREADER_DIR="/mnt/us/koreader"
# Load our helper functions...
if [ -f "${KOREADER_DIR}/libkoreader.inc" ] ; then
source "${KOREADER_DIR}/libkoreader.inc"
if [ -f "${KOREADER_DIR}/libkohelper.sh" ] ; then
source "${KOREADER_DIR}/libkohelper.sh"
else
echo "Can't source helper functions, aborting!"
exit 1
@@ -83,10 +83,11 @@ cd "${KOREADER_DIR}"
NEWUPDATE="${KOREADER_DIR}/ota/koreader.updated.tar"
if [ -f "${NEWUPDATE}" ] ; then
logmsg "Updating koreader . . ."
# Look for our own GNU tar build to do a fancy update tracking...
# Look for our own GNU tar build to do a fancy progress tracking...
GNUTAR_BIN="${KOREADER_DIR}/tar"
if [ -x "${GNUTAR_BIN}" ] ; then
# Let our checkpoint script handle the visual feedback...
# Let our checkpoint script handle the detailed visual feedback...
eips_print_bottom_centered "Updating koreader" 1
${GNUTAR_BIN} -C "/mnt/us" --checkpoint=200 --checkpoint-action=exec='./kotar_cpoint $TAR_CHECKPOINT' -xf "${NEWUPDATE}"
else
# Fall back to busybox tar

View File

@@ -4,8 +4,8 @@
KOREADER_DIR="/mnt/us/koreader"
# Load our helper functions...
if [ -f "${KOREADER_DIR}/libkoreader.inc" ] ; then
source "${KOREADER_DIR}/libkoreader.inc"
if [ -f "${KOREADER_DIR}/libkohelper.sh" ] ; then
source "${KOREADER_DIR}/libkohelper.sh"
else
echo "Can't source helper functions, aborting!"
exit 1

View File

@@ -1,6 +1,4 @@
#!/bin/sh
# NOTE: KatePart is being stupid, probably because of the file extension. Get me a decent syntax HL anyway.
#kate: syntax bash;
## A bit of helper functions...
# Check which type of init system we're running on