EasyManuals Logo

Linux Pocket Linux Guide User Manual

Default Icon
67 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #39 background imageLoading...
Page #39 background image
#!/bin/sh
#
# reboot − reboot the system
#
PATH=/sbin:/bin ; export PATH
echo "Initiating system reboot."
reboot
#
# end of /etc/init.d/reboot
Flag all script files as executable.
bash# chmod +x ~/staging/etc/init.d/*
6.3.8. Create rcN.d directories and links
bash# cd ~/staging/etc
bash# mkdir rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d
bash# cd ~/staging/etc/rcS.d
bash# ln −s ../init.d/local_fs S20local_fs
bash# ln −s ../init.d/hostname S30hostname
bash# cd ~/staging/etc/rc0.d
bash# ln −s ../init.d/local_fs K10local_fs
bash# ln −s ../init.d/halt K90halt
bash# cd ~/staging/etc/rc6.d
bash# ln −s ../init.d/local_fs K10local_fs
bash# ln −s ../init.d/reboot K90reboot
6.3.9. Create the root disk image
bash# cd /
bash# dd if=/dev/zero of=/dev/ram7 bs=1k count=4096
bash# mke2fs −m0 /dev/ram7 4096
bash# mount /dev/ram7 /mnt
bash# cp −dpR ~/staging/* /mnt
bash# umount /dev/ram7
bash# dd if=/dev/ram7 of=~/phase5−image bs=1k
bash# gzip −9 ~/phase5−image
6.3.10. Copy the image to diskette
Insert the diskette labeled "root disk" into drive fd0.
bash# dd if=~/phase5−image.gz of=/dev/fd0 bs=1k
6.4. Implementation
6.4.1. System Startup
Boot the PC using the floppy labeled "boot disk". Place the recently created root disk in fd0 when prompted.
The output should resemble the example below:
GNU GRUB version 0.95
Pocket Linux Guide
Chapter 6. Automating Startup & Shutdown 33

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Linux Pocket Linux Guide and is the answer not in the manual?

Linux Pocket Linux Guide Specifications

General IconGeneral
BrandLinux
ModelPocket Linux Guide
CategorySoftware
LanguageEnglish