OSDN Git Service

Initial commit
[rebornos/cnchi-gnome-osdn.git] / scripts / pkcon.sh
1 #  Copyright © 2016-2019 Reborn OS
2 #
3 #  This file is part of Reborn OS.
4 #
5 #  Reborn OS is free software; you can redistribute it and/or modify
6 #  it under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation; either version 3 of the License, or
8 #  (at your option) any later version.
9 #
10 #  Reborn OS is distributed in the hope that it will be useful,
11 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #  GNU General Public License for more details.
14 #
15 #  The following additional terms are in effect as per Section 7 of the license:
16 #
17 #  The preservation of all legal notices and author attributions in
18 #  the material or in the Appropriate Legal Notices displayed
19 #  by works containing it is required.
20 #
21 #  You should have received a copy of the GNU General Public License
22 #  along with Reborn OS; If not, see <http://www.gnu.org/licenses/>.
23
24 wget --spider www.google.com
25 if [ "$?" = 0 ]; then
26
27 flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo
28
29 pkcon refresh
30
31 pkexec rm /usr/share/applications/flatpak.desktop
32
33 if [ -f /usr/bin/gnome-software ]; then
34 gnome-software
35 echo "STARTING GNOME-SOFTWARE"
36 fi
37
38 if [ -f /usr/bin/plasma-discover ]; then
39 plasma-discover
40 echo "STARTING PLASMA-DISCOVER"
41 fi
42
43 else exec /usr/bin/pkcon.sh
44 fi