wok diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/turbine/stuff/res/base/freeup.cgi Sat Oct 05 18:31:33 2019 +0200 1.3 @@ -0,0 +1,45 @@ 1.4 +#!/bin/bash 1.5 +# 1.6 +# Provided By The SliTaz Development Team. 1.7 +# Copyright (C) 2017 The SliTaz Association. 1.8 +# 1.9 +# This program is free software: you can redistribute it and/or modify 1.10 +# it under the terms of the GNU General Public License as published by 1.11 +# the Free Software Foundation, either version 3 of the License, or 1.12 +# (at your option) any later version. 1.13 +# 1.14 +# This program is distributed in the hope that it will be useful, 1.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 1.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1.17 +# GNU General Public License for more details. 1.18 +# 1.19 +# You should have received a copy of the GNU General Public License 1.20 +# along with this program. If not, see <http://www.gnu.org/licenses/>. 1.21 +# 1.22 +# @@ Turbine Database. 1.23 +. /var/www/cgi-bin/turbine/res/base/data 1.24 +. /var/www/cgi-bin/turbine/res/template/scheme 1.25 + 1.26 +case "$(GET)" in 1.27 + img) 1.28 + header "HTTP/1.1 200 OK\nContent-type: image/png" 1.29 + case "$(GET img)" in 1.30 + lg) cat $localicons/24/turbine.png ;; 1.31 + ani2) cat $localtheme/img/ani-02.png ;; 1.32 + ani3) cat $localtheme/img/ani-03.png ;; 1.33 + turbine) cat $localicons/256/turbine.png ;; 1.34 + esac ;; 1.35 + *) 1.36 +esac 1.37 + 1.38 +freeMEM(){ 1.39 + sync && echo 3 > /proc/sys/vm/drop_caches 1.40 +} 1.41 + 1.42 +header 1.43 + 1.44 +appMETAINFO 1.45 +appFREEUP 1.46 +appFOOTER 1.47 +freeMEM 1.48 +appRETURN