slitaz-arm view rpi/cgi-adm/plugins/rpi_boot/rpi_boot.cgi @ rev 65
Tiny edits
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Mar 15 22:58:00 2014 +0000 (2014-03-15) |
parents | d3376f278818 |
children | d81795f58d28 |
line source
1 #!/bin/sh
2 #
3 # TazBerry CGI Plugin - Skeleton
4 #
6 if [ "$(GET rpi_boot)" ]; then
7 html_header "Boot"
8 echo "<h1>SliTaz RPi Boot</h1>"
10 cat << EOT
11 <p>
12 The Raspberry Pi uses 2 config files to boot. The default SliTaz RPi
13 Linux kernel image is: /boot/kernel.img
14 </p>
16 <pre>
18 Kernel boot parameters
19 --------------------------------------------------------------------------------
20 $(cat /boot/cmdline.txt 2>/dev/null)
23 RPi configuration file
24 --------------------------------------------------------------------------------
25 $(cat /boot/config.txt 2>/dev/null)
28 Boot files
29 --------------------------------------------------------------------------------
30 $(ls -1 /boot)
31 </pre>
32 EOT
34 html_footer
35 exit 0
36 fi