committing changes in /etc after emerge run
Package changes: +net-misc/teamviewer-10.0.41499-r1
This commit is contained in:
parent
49dc193dee
commit
eb60f1e59e
6
conf.d/teamviewerd10
Normal file
6
conf.d/teamviewerd10
Normal file
@ -0,0 +1,6 @@
|
||||
# This entry can be used to specify a default daemon password.
|
||||
# It is set by running /etc/init.d/teamviewerd@TVV@ passwd.
|
||||
# The password must be between 8 and 12 characters, and special characters should
|
||||
# be avoided.
|
||||
|
||||
PASSWD=""
|
31
init.d/teamviewerd10
Executable file
31
init.d/teamviewerd10
Executable file
@ -0,0 +1,31 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
command=/opt/teamviewer10/tv_bin/teamviewerd
|
||||
command_args=-d
|
||||
description="daemon for TeamViewer"
|
||||
pidfile=/var/run/teamviewerd.pid
|
||||
|
||||
extra_stopped_commands="passwd"
|
||||
|
||||
passwd() {
|
||||
if [ -z "${PASSWD}" ]; then
|
||||
eerror "No password specified."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ebegin "Attempting to change password."
|
||||
/opt/teamviewer10/tv_bin/teamviewerd --passwd "${PASSWD}"
|
||||
retr=$?
|
||||
case $retr in
|
||||
0) einfo "Password successfully set." ;;
|
||||
11|12) eerror "Password must be between 8 and 12 characters.";;
|
||||
13) eerror "Invalid characters detected.";;
|
||||
14) eerror "Password invalid. Validation failed.";;
|
||||
*) eerror "Unknown error code";;
|
||||
esac
|
||||
eend $retr
|
||||
exit $retr
|
||||
}
|
0
teamviewer10/.keep_net-misc_teamviewer-10
Normal file
0
teamviewer10/.keep_net-misc_teamviewer-10
Normal file
Loading…
Reference in New Issue
Block a user