diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-01-22 15:05:00 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-01-22 15:05:00 -0200 |
commit | bd26b462c451bbf0f13a323b4942c89a2c439844 (patch) | |
tree | 2d4b1c6cd2a2370f5d1c6368474c70bab33fb9cb /pcr/xbmc-standalone-service/readme.install | |
parent | 64da8c3bf875b08c73891f9a59f58aaa6b9a6dff (diff) | |
download | abslibre-bd26b462c451bbf0f13a323b4942c89a2c439844.tar.gz abslibre-bd26b462c451bbf0f13a323b4942c89a2c439844.tar.bz2 abslibre-bd26b462c451bbf0f13a323b4942c89a2c439844.zip |
rename xbmc-standalone-service to kodi-standalone-service
Diffstat (limited to 'pcr/xbmc-standalone-service/readme.install')
-rw-r--r-- | pcr/xbmc-standalone-service/readme.install | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/pcr/xbmc-standalone-service/readme.install b/pcr/xbmc-standalone-service/readme.install deleted file mode 100644 index 0f5edbec0..000000000 --- a/pcr/xbmc-standalone-service/readme.install +++ /dev/null @@ -1,37 +0,0 @@ -post_install() { - getent group xbmc > /dev/null || groupadd -g 420 xbmc - if ! getent passwd xbmc > /dev/null; then - useradd -c 'XBMC user' -u 420 -g xbmc -G audio,video,network,optical -d /var/lib/xbmc -s /sbin/nologin xbmc - passwd -l xbmc > /dev/null - fi -} - -post_upgrade() { - post_install $1 - if ! getent group xbmc | cut -d: -f3 | grep 420 > /dev/null 2>&1; then - groupmod -g 420 xbmc > /dev/null 2>&1 - fi - if ! id -u xbmc | grep 420 > /dev/null 2>&1; then - usermod -u 420 xbmc > /dev/null 2>&1 - if [[ $? -ne 0 ]]; then - echo "Changing uid of user xbmc failed" - echo "It is recommended that the uid is changed." - echo "Stop all processes running under the xbmc user and reinstall xbmc" - echo "or change the uid manually. (usermod -u 420 xbmc)" - fi - chown -R xbmc:xbmc /var/lib/xbmc - fi -} - -post_remove() { - getent passwd xbmc > /dev/null 2>&1 && userdel xbmc - getent group xbmc > /dev/null 2>&1 && groupdel xbmc -} - -post_message() { - echo "To autostart xbmc standalone, you must create or modify" - echo "/etc/X11/Xwrapper.config to contain the following 2 lines:" - echo - echo "allowed_users = anybody" - echo "needs_root_rights = yes" -} |