slitaz-arm annotate 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 |
rev | line source |
---|---|
pankso@59 | 1 #!/bin/sh |
pankso@59 | 2 # |
pankso@67 | 3 # TazBerry CGI Plugin - Boot configs and options |
pankso@59 | 4 # |
pankso@59 | 5 |
pankso@59 | 6 if [ "$(GET rpi_boot)" ]; then |
pankso@59 | 7 html_header "Boot" |
pankso@67 | 8 echo "<h1>SliTaz Raspberry Pi Boot</h1>" |
pankso@59 | 9 |
pankso@59 | 10 cat << EOT |
pankso@59 | 11 <p> |
pankso@80 | 12 The Raspberry Pi uses 2 config files to boot: cmdline.txt, config.txt |
pankso@59 | 13 </p> |
pankso@59 | 14 |
pankso@59 | 15 <pre> |
pankso@59 | 16 |
pankso@67 | 17 Kernel boot parameters [ <a href="$script?editor&file=/boot/cmdline.txt">Edit</a> ] |
pankso@59 | 18 -------------------------------------------------------------------------------- |
pankso@59 | 19 $(cat /boot/cmdline.txt 2>/dev/null) |
pankso@59 | 20 |
pankso@59 | 21 |
pankso@67 | 22 RPi configuration file [ <a href="$script?editor&file=/boot/config.txt">Edit</a> ] |
pankso@59 | 23 -------------------------------------------------------------------------------- |
pankso@59 | 24 $(cat /boot/config.txt 2>/dev/null) |
pankso@59 | 25 |
pankso@59 | 26 EOT |
pankso@59 | 27 |
pankso@59 | 28 html_footer |
pankso@59 | 29 exit 0 |
pankso@59 | 30 fi |