Commit 9f3e7881 authored by Diego Pasqualin's avatar Diego Pasqualin

le-multiterminal: Update to userful "30/08/2013" version

Signed-off-by: 's avatarDiego Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 7370f0ca
description "Install OEM license using activation code stored in /etc/OEM-activation-code"
start on stopped umx-start
script
/usr/sbin/userful-install-oem-license.sh /etc/OEM-activation-code
end script
#######################
## Userful Udev Rules
#######################
# Disable auto browsing for storage devices
SUBSYSTEM=="block", ACTION=="add|remove|change", ENV{DKD_PRESENTATION_HIDE}="1", ENV{UDISKS_PRESENTATION_HIDE}="1"
# Check ThinNetwork manadatory device
ACTION=="add", ENV{DEVTYPE}=="usb_device", ENV{ID_VENDOR}=="ThinNetworks", RUN+="/usr/sbin/ums-check-manadatory-dev.sh"
#!/bin/bash
# This is the shutdown script for ThinNetwork called from userful-systray.
# Since we have very tight deadline, this is developed
# in HURRY mode.. No internationalization.
# Bug 8530
mode=$1
if [ "$mode" == "--poweroff" ]; then
title="Desligar"
msg="Esta função desligará o computador e qualquer sessão ativa será fechada sem aviso. Você quer continuar?"
elif [ "$mode" == "--reboot" ]; then
title="Reiniciar"
msg="Esta função reiniciará o computador e qualquer sessão ativa será fechada sem aviso. Você quer continuar?"
fi
zenity --question --title="$title" --text="$msg"
ret=$?
if [ $ret != 0 ]; then
exit 0
fi
if [ "$mode" == "--poweroff" ]; then
shutdown -h now
else
shutdown -r now
fi
#!/bin/bash
# This is the last minute updates for ThinNetworks mandatory device support.
# There would be better way for it. Bug 8778
export DBUS_SESSION_BUS_ADDRESS=`cat /var/run/userful/dbus_addr`
LOG=/var/log/userful-udev.log
# XXX Assumption XXX
# - display id is the same as the number of mandatory devices.
# - station id is ((number of mandatory devices - 1))
dev_cnt=`lsusb -vv | grep "ThinNetworks" | wc -l`
displayid=$dev_cnt
stationid=$((displayid-1))
#Check if target station is already configured with keyboard.
kbd_dev=`qdbus com.userful.DB /com/userful/DB com.userful.DB.StationGetKeyboardDevices $stationid`
if [ "$kbd_dev" == "InvalidStation" ]; then
# invalid stationid
exit 0
fi
# Stop the "Too Many station" screen
# - qdbus requires instrospection
dbus-send --session --print-reply --dest=com.userful.ControlServer --type=method_call \
/com/userful/ControlServer/DisplayManager \
com.userful.ControlServer.DisplayManager.Stop \
string:":$displayid" string:"deactivate-station"
if [ "$kbd_dev" == "" ]; then
# Start PFK
qdbus com.userful.keyscan / com.userful.keyscan.DBusInterface.configureKeyboard \
$displayid $stationid
fi
#!/bin/sh
# Copyright (c) 2013 Userful Corporation. All rights reserved.
# http://www.userful.com/
# Script to read the activation code from a given file and retrieve the license from key.userful.com
# This script is for OEM to retrieve license when first boot up.
# This script need to be added to /etc/rc.local usually.
# For example: userful-install-oem-license.sh /etc/OEM-activation-code
activation_code_file=/etc/OEM-activation-code
if [ -n "$1" ]; then
activation_code_file="$1"
fi
if [ ! -f $activation_code_file ]; then
echo "Can't find the activation code file $activation_code_file"
exit 1
fi
activation_code=`head -n 1 $activation_code_file`
userful license get station_number=0 activation_code=$activation_code
if [ $? -eq 0 ]; then
rm -f $activation_code_file
echo "The activation code file $activation_code_file was removed"
fi
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