slitaz-arm view rpi/cgi-adm/plugins/rpi_boot/rpi_boot.cgi @ rev 80
Add a very tiny system CGI sys config plugin
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 29 14:40:17 2014 +0100 (2014-03-29) |
parents | d81795f58d28 |
children |
line source
1 #!/bin/sh
2 #
3 # TazBerry CGI Plugin - Boot configs and options
4 #
6 if [ "$(GET rpi_boot)" ]; then
7 html_header "Boot"
8 echo "<h1>SliTaz Raspberry Pi Boot</h1>"
10 cat << EOT
11 <p>
12 The Raspberry Pi uses 2 config files to boot: cmdline.txt, config.txt
13 </p>
15 <pre>
17 Kernel boot parameters [ <a href="$script?editor&file=/boot/cmdline.txt">Edit</a> ]
18 --------------------------------------------------------------------------------
19 $(cat /boot/cmdline.txt 2>/dev/null)
22 RPi configuration file [ <a href="$script?editor&file=/boot/config.txt">Edit</a> ]
23 --------------------------------------------------------------------------------
24 $(cat /boot/config.txt 2>/dev/null)
26 EOT
28 html_footer
29 exit 0
30 fi