File: linuxrc

package info (click to toggle)
initrd-tools 0.1.84.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 156 kB
  • ctags: 32
  • sloc: sh: 1,698; makefile: 45
file content (12 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# $Id: linuxrc,v 1.11 2004/04/26 12:04:46 herbert Exp $

export PATH=/sbin:/bin

mount -nt proc proc proc
root=$(cat proc/sys/kernel/real-root-dev)
echo 256 > proc/sys/kernel/real-root-dev
mount -nt tmpfs tmpfs bin ||
	mount -nt ramfs ramfs bin
echo $root > bin/root