source: MondoRescue/trunk/mindi/rootfs/sbin/bug-me@ 274

Last change on this file since 274 was 30, checked in by bcornec, 19 years ago

Id property added on files to allow for better conf. management

  • Property svn:keywords set to Id
File size: 847 bytes
Line 
1#!/bin/sh
2
3Die() {
4 echo "$1" >> /dev/stderr
5 exit 1
6}
7
8
9echo -en "Insert a blank floppy and press ENTER"
10read line
11mke2fs /dev/fd0 || Die "Failed to format floppy disk"
12mkdir -p /tmp/bug-me
13cp /tmp/*log /tmp/bug-me/
14cp /tmp/{fstab,mountlist.txt} /tmp/bug-me/
15cat /proc/cpuinfo > /tmp/bug-me/cpuinfo.txt
16uname -r > /tmp/bug-me/uname-r.txt
17cat /proc/meminfo > /tmp/bug-me/meminfo.txt
18tar -c /tmp/bug-me | gzip -9 > /tmp/bug-me.tgz
19rm /tmp/bug-me -Rf
20mount /dev/fd0 -t ext2 /mnt/floppy || Die "I cannot mount /dev/fd0 as filesystem type ext2 at /mnt/floppy."
21cp -f /tmp/bug-me.tgz /mnt/floppy
22umount /mnt/floppy
23echo "I have copied bug-me.tgz to the floppy. Please send the file to hugo@firstlinux.net"
24echo "Please make sure you have read the FAQ, the manual and preferably the log"
25echo "and the mailing list before you seek assistance."
26
27
28
Note: See TracBrowser for help on using the repository browser.