summaryrefslogtreecommitdiffstats
path: root/urunlevel/runlevel/remote_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'urunlevel/runlevel/remote_fs.c')
-rw-r--r--urunlevel/runlevel/remote_fs.c59
1 files changed, 30 insertions, 29 deletions
diff --git a/urunlevel/runlevel/remote_fs.c b/urunlevel/runlevel/remote_fs.c
index 6da11f5..ab659a4 100644
--- a/urunlevel/runlevel/remote_fs.c
+++ b/urunlevel/runlevel/remote_fs.c
@@ -3,6 +3,9 @@
3 * 3 *
4 * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au 4 * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au
5 * 5 *
6 * Clean room implementation of LSB init.d specs.
7 * I didn't steal any of this, honest B-).
8 *
6 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or 11 * the Free Software Foundation; either version 2 of the License, or
@@ -31,53 +34,51 @@ static int status(struct init_d_handle_s *, int);
31static int stop(struct init_d_handle_s *, int); 34static int stop(struct init_d_handle_s *, int);
32 35
33 36
34static init_d_handle_t my_commands = 37static init_d_handle_t my_commands = {
35{ 38 &start,
36 &start, 39 &stop,
37 &stop, 40 NULL,
38 NULL, 41 NULL,
39 NULL, 42 &no_reload,
40 &no_reload, 43 NULL,
41 NULL, 44 &status,
42 &status, 45 NULL,
43 NULL, 46 "remote_fs",
44 "remote_fs", 47 NULL,
45 NULL, 48 NULL,
46 NULL, 49 NULL,
47 NULL, 50 INIT_D_BEGIN
48 INIT_D_BEGIN \ 51 INIT_D_PROV "$remote_fs"
49 INIT_D_PROV "$remote_fs" \ 52 INIT_D_RSTART "$network"
50 INIT_D_RSTART "$network" \ 53 INIT_D_SSTART "nfs smbfs codafs"
51 INIT_D_SSTART "nfs smbfs codafs" \ 54 INIT_D_DSTART "3 4 5"
52 INIT_D_DSTART "3 4 5" \ 55 INIT_D_DSTOP "0 1 2 6"
53 INIT_D_DSTOP "0 1 2 6" \ 56 INIT_D_SDESC "Mount all remote file systems."
54 INIT_D_SDESC "Mount all remote file systems." \ 57 INIT_D_DESC "Mount all remote file systems. Actually, this is just a"
55 INIT_D_DESC "Mount all remote file systems. Actually, this is just a" \ 58 INIT_D_CONT "dummy that depends on all the init scripts that could"
56 INIT_D_CONT "dummy that depends on all the init scripts that could" \ 59 INIT_D_CONT "possibly mount remote file systems." INIT_D_END
57 INIT_D_CONT "possibly mount remote file systems." \
58 INIT_D_END
59}; 60};
60 61
61 62
62int remote_fs_main(int argc, char **argv) 63int remote_fs_main(int argc, char **argv)
63{ 64{
64 return do_init_from_main(argc, argv, &my_commands); 65 return do_init_from_main(argc, argv, &my_commands);
65} 66}
66 67
67 68
68static int start(struct init_d_handle_s *init_d, int just_checking) 69static int start(struct init_d_handle_s *init_d, int just_checking)
69{ 70{
70 return INIT_D_OK; 71 return INIT_D_OK;
71} 72}
72 73
73 74
74static int status(struct init_d_handle_s *init_d, int quiet) 75static int status(struct init_d_handle_s *init_d, int quiet)
75{ 76{
76 return print_status(init_d, quiet, INIT_D_STATUS_OK); 77 return print_status(init_d, quiet, INIT_D_STATUS_OK);
77} 78}
78 79
79 80
80static int stop(struct init_d_handle_s *init_d, int just_checking) 81static int stop(struct init_d_handle_s *init_d, int just_checking)
81{ 82{
82 return INIT_D_OK; 83 return INIT_D_OK;
83} 84}