poweroff.sh 975 Bytes
Newer Older
1 2
#!/bin/bash

Benoît Boudaud's avatar
Benoît Boudaud committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16
# Copyright © 2018 Benoît Boudaud <https://miamondo.org>
# This program 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 3 of the License, or
# 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, see <http://www.gnu.org/licenses/>

17 18 19
sed -i "/Documents/! s/quit=.*/quit=poweroff/" $HOME/Documents/config_files/synchronisation-automatique/rsync.sh
sed -i "/Documents/! s/value=0/value=1/" $HOME/Documents/config_files/synchronisation-automatique/rsync.sh
$HOME/Documents/config_files/synchronisation-automatique/rsync.sh