Commit e1a53eff authored by Lucas Manika Koeb's avatar Lucas Manika Koeb
Browse files

greeter: Add /etc/init.d/le5-config script


Signed-off-by: default avatarLucas Manika Koeb <lmk08@c3sl.ufpr.br>
parent 9e088432
#!/bin/bash
#
# Copyright (C) 2004-2012 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le5-greeter
#
# le5-greeter is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
OUTPUT_DIR="/etc/le"
OUTPUT_FILE="/etc/le/contador"
case "$1" in
start)
mkdir -p $OUTPUT_DIR || true
echo "0" > $OUTPUT_FILE
chmod 600 $OUTPUT_FILE
;;
stop)
rm -f $OUTPUT_FILE
;;
*)
echo "Usage: /etc/init.d/le5-config {start|stop}"
exit 1
;;
esac
exit 0
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