wok view turbine/stuff/res/base/freeup.cgi @ rev 21922

Add get-pcem-roms (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 05 18:31:33 2019 +0200 (2019-10-05)
parents
children
line source
1 #!/bin/bash
2 #
3 # Provided By The SliTaz Development Team.
4 # Copyright (C) 2017 The SliTaz Association.
5 #
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #
19 # @@ Turbine Database.
20 . /var/www/cgi-bin/turbine/res/base/data
21 . /var/www/cgi-bin/turbine/res/template/scheme
23 case "$(GET)" in
24 img)
25 header "HTTP/1.1 200 OK\nContent-type: image/png"
26 case "$(GET img)" in
27 lg) cat $localicons/24/turbine.png ;;
28 ani2) cat $localtheme/img/ani-02.png ;;
29 ani3) cat $localtheme/img/ani-03.png ;;
30 turbine) cat $localicons/256/turbine.png ;;
31 esac ;;
32 *)
33 esac
35 freeMEM(){
36 sync && echo 3 > /proc/sys/vm/drop_caches
37 }
39 header
41 appMETAINFO
42 appFREEUP
43 appFOOTER
44 freeMEM
45 appRETURN