/[baselayout]/trunk/sbin/rc-update
Gentoo

Diff of /trunk/sbin/rc-update

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

Revision 483 Revision 484
1#!/bin/bash 1#!/bin/bash
2# Copyright 1999-2003 Gentoo Technologies, Inc. 2# Copyright 1999-2004 Gentoo Technologies, Inc.
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$ 4# $Header$
5 5
6source /sbin/functions.sh 6source /sbin/functions.sh
7if [ "${EUID}" -ne 0 ] 7if [ "${EUID}" -ne 0 ]
14cat << FOO 14cat << FOO
15usage: rc-update -a|add script runlevel2 [runlevel2...] 15usage: rc-update -a|add script runlevel2 [runlevel2...]
16 rc-update -d|del script [runlevel1...] 16 rc-update -d|del script [runlevel1...]
17 rc-update -s|show [runlevel1...] 17 rc-update -s|show [runlevel1...]
18 18
19note:
20 After rc-update executes, the script dependency cache is automatically 19note: After rc-update executes, the script dependency cache is automatically
21 updated. 20 updated.
22 21
23examples: 22examples:
24 rc-update add net.eth0 default 23 rc-update add net.eth0 default
25 Adds the net.eth0 script (in /etc/init.d) to the "default" runlevel. 24 Adds the net.eth0 script (in /etc/init.d) to the "default" runlevel.
35 /etc/runlevels/default and /etc/runlevels/wumpus. 34 /etc/runlevels/default and /etc/runlevels/wumpus.
36 35
37 rc-update show 36 rc-update show
38 Show all the available scripts and list at which runlevels they 37 Show all the available scripts and list at which runlevels they
39 will execute. 38 will execute.
40
41FOO 39FOO
42 exit 1 40 exit 1
43} 41}
44 42
45add() { 43add() {

Legend:
Removed from v.483  
changed lines
  Added in v.484

  ViewVC Help
Powered by ViewVC 1.1.20