mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
remove unwanted files
This commit is contained in:
parent
abb023506c
commit
09411d9782
@ -1,33 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# eject CD if booted from cdrom and their is no media files on it
|
|
||||||
#
|
|
||||||
# runlevels: geexbox, debug, configure
|
|
||||||
|
|
||||||
if test -n "$CDROM"; then
|
|
||||||
echo "### Eject CDROM ###"
|
|
||||||
|
|
||||||
(
|
|
||||||
# add recognized files extension to the EXTS list
|
|
||||||
for i in `cat /etc/file_ext`; do
|
|
||||||
if [ -z "$EXTS" ]; then
|
|
||||||
EXTS="$i"
|
|
||||||
else
|
|
||||||
EXTS="$EXTS\|$i"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
# add recognized images extension to the EXTS list
|
|
||||||
if [ -x /usr/bin/fbi -a -e /dev/fb0 ]; then
|
|
||||||
for i in `cat /etc/img_ext`; do EXTS="$EXTS\|$i"; done
|
|
||||||
fi
|
|
||||||
# add recognized playlists extension to the EXTS list
|
|
||||||
for i in `cat /etc/list_ext`; do EXTS="$EXTS\|$i"; done
|
|
||||||
# check if their is recognized media files on the CD
|
|
||||||
if [ -z "`find "$CDROM" | grep -v /GEEXBOX/ | grep -i "\.\($EXTS\)\$"`" ]; then
|
|
||||||
# eject the CD
|
|
||||||
[ -e /dev/cdrom ] && eject -s /dev/cdrom
|
|
||||||
fi
|
|
||||||
)&
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,9 +0,0 @@
|
|||||||
# progress bar position
|
|
||||||
BAR_LEFT=170
|
|
||||||
BAR_TOP=300
|
|
||||||
BAR_WIDTH=300
|
|
||||||
BAR_HEIGHT=20
|
|
||||||
# progress bar color
|
|
||||||
BAR_R=80
|
|
||||||
BAR_G=80
|
|
||||||
BAR_B=130
|
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user