Commit 8cdeee3d authored by Lucas Martins's avatar Lucas Martins

le-multiterminal: Fix run-parts script format error

Signed-off-by: 's avatarLucas Martins <lsm12@c3sl.ufpr.br>
parent 06ca8f34
......@@ -26,15 +26,13 @@
ALREADY_EXEC_FILE="/etc/le-multiterminal/already_executed"
ALREADY_INSTALLED="/etc/le-multiterminal/already_installed"
CONTROL_CENTER="/usr/share/userful/frontend/start-control-center.sh"
RESOLUTION='1024x768'
defaultResolution() {
MOBONAME="$(dmidecode | grep -A12 "^Base" |
grep "Product Name: " | cut -d':' -f2 | sed -e 's/^ //g')"
if [ $MOBONAME == 'POS-MIG31AG' ] && lspci | egrep -q \
if [[ $MOBONAME == POS-MIG31AG ]] && lspci | egrep -q \
'Display controller:.+TN-502|Display
controller:.+SM501'; then
# Hardware is 832008
......@@ -53,18 +51,7 @@ defaultResolution() {
fi
}
# We believe that the maximum number of session that can be opened at the
# same time is MAX_SESSIONS.
#MAX_SESSIONS=6
if [ ! -f "$ALREADY_INSTALLED" ]; then
$CONTROL_CENTER
touch "ALREADY_INSTALLED"
exit 0
fi
if dpkg-query -l le-multiterminal &>/dev/null &&
[ ! -f "$ALREADY_EXEC_FILE" ] ; then
if [ ! -f "$ALREADY_EXEC_FILE" ]; then
mkdir /etc/le-multiterminal
touch "$ALREADY_EXEC_FILE"
defaultResolution
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment