/[baselayout]/branches/rc-scripts-1_6/sbin/rc
Gentoo

Diff of /branches/rc-scripts-1_6/sbin/rc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1533 Revision 1534
1#!/bin/bash 1#!/bin/bash
2# Copyright 1999-2005 Gentoo Foundation 2# Copyright 1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2 3# Distributed under the terms of the GNU General Public License v2
4# $Header$
5 4
6trap ":" INT QUIT TSTP 5trap ":" INT QUIT TSTP
7source /sbin/functions.sh 6source /sbin/functions.sh
8# Only source this when this is a livecd booting ... 7# Only source this when this is a livecd booting ...
9[ -f /sbin/livecd-functions.sh ] && source /sbin/livecd-functions.sh 8[ -f /sbin/livecd-functions.sh ] && source /sbin/livecd-functions.sh
480 if [ "${svcmount}" = "yes" ] 479 if [ "${svcmount}" = "yes" ]
481 then 480 then
482 ebegin "Mounting ${svcfstype} at ${svcdir}" 481 ebegin "Mounting ${svcfstype} at ${svcdir}"
483 case "${svcfstype}" in 482 case "${svcfstype}" in
484 ramfs) 483 ramfs)
485 try mount -n -t ramfs svcdir "${svcdir}" \ 484 try mount -t ramfs svcdir "${svcdir}" \
486 -o rw,mode=0755,size="${svcsize}"k 485 -o rw,mode=0755,size="${svcsize}"k
487 ;; 486 ;;
488 ramdisk) 487 ramdisk)
489 try dd if=/dev/zero of=/dev/ram0 bs=1k count="${svcsize}" 488 try dd if=/dev/zero of=/dev/ram0 bs=1k count="${svcsize}"
490 try /sbin/mke2fs -i 1024 -vm0 /dev/ram0 "${svcsize}" 489 try /sbin/mke2fs -i 1024 -vm0 /dev/ram0 "${svcsize}"
491 try mount -n -t ext2 /dev/ram0 "${svcdir}" -o rw 490 try mount -t ext2 /dev/ram0 "${svcdir}" -o rw
492 ;; 491 ;;
493 tmpfs|*) 492 tmpfs|*)
494 try mount -n -t tmpfs svcdir "${svcdir}" \ 493 try mount -t tmpfs svcdir "${svcdir}" \
495 -o rw,mode=0755,size="${svcsize}"k 494 -o rw,mode=0755,size="${svcsize}"k
496 ;; 495 ;;
497 esac 496 esac
498 eend 0 497 eend 0
499 fi 498 fi

Legend:
Removed from v.1533  
changed lines
  Added in v.1534

  ViewVC Help
Powered by ViewVC 1.1.20