~ubuntu-branches/ubuntu/oneiric/netbase/oneiric

« back to all changes in this revision

Viewing changes to debian/netbase.init

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-09-15 03:27:40 UTC
  • Revision ID: james.westby@ubuntu.com-20090915032740-38437egxzfnx8f3y
Tags: 4.35ubuntu2
FFE LP: #427356.

* debian/netbase.init:
  - Replace the "start" command with a call to upstart-job
* debian/control:
  - Depend on upstart-job
* debian/netbase.postinst:
  - Remove old start symlinks on upgrade
  - Only install symlinks for runlevel 0 and 6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
2
### BEGIN INIT INFO
3
3
# Provides:          networking
4
 
# Required-Start:    mountkernfs ifupdown $local_fs
5
 
# Required-Stop:     ifupdown $local_fs
6
 
# Default-Start:     S
 
4
# Required-Start:    
 
5
# Required-Stop:     $local_fs
 
6
# Default-Start:     
7
7
# Default-Stop:      0 6
8
8
# Short-Description: Raise network interfaces.
9
9
### END INIT INFO
50
50
 
51
51
case "$1" in
52
52
start)
53
 
        process_options
54
 
 
55
 
        log_action_begin_msg "Configuring network interfaces"
56
 
        usplash_timeout 120
57
 
        if [ "$VERBOSE" != no ]; then
58
 
            if ifup -a; then
59
 
                log_action_end_msg $?
60
 
            else
61
 
                log_action_end_msg $?
62
 
            fi
63
 
        else
64
 
            if ifup -a >/dev/null 2>&1; then
65
 
                log_action_end_msg $?
66
 
            else
67
 
                log_action_end_msg $?
68
 
            fi
69
 
        fi
70
 
        usplash_timeout 15
 
53
        /lib/init/upstart-job networking start
71
54
        ;;
72
55
 
73
56
stop)