1 DESCRIPTION
= "FooNAS initial boot and config"
5 DEPENDS
= "base-files devio"
6 RDEPENDS
= "busybox devio"
9 SRC_URI
= "file://initscripts/fixfstab \
10 file://initscripts/syslog.buffer \
11 file://initscripts/syslog.file \
12 file://initscripts/syslog.network \
13 file://initscripts/rmrecovery \
14 file://initscripts/sysconfsetup \
15 file://initscripts/umountinitrd.sh \
16 file://initscripts/loadmodules.sh \
18 file://modulefunctions \
28 CPROGS
= "${USRSBINPROGS} ${SBINPROGS}"
29 SCRIPTS
= "turnup reflash sysconf"
30 INITSCRIPTS
= "syslog.buffer syslog.file syslog.network \
31 rmrecovery sysconfsetup umountinitrd.sh \
32 fixfstab loadmodules.sh"
34 # This just makes things easier...
42 $
{CC
} $
{CFLAGS
} -o $p $p.c
51 install
-d $
{D
}$
{sysconfdir
} \
52 $
{D
}$
{sysconfdir
}/default \
53 $
{D
}$
{sysconfdir
}/init.d \
54 $
{D
}$
{sysconfdir
}/modutils \
55 $
{D
}$
{sysconfdir
}/udev \
61 for p in $
{USRSBINPROGS
}
63 install
-m
0755 $p $
{D
}$
{sbindir
}/$p
67 install
-m
0755 $p $
{D
}$
{base_sbindir
}/$p
73 install
-m
0755 $p $
{D
}$
{base_sbindir
}/$p
78 install
-m
0644 functions $
{D
}$
{sysconfdir
}/default
79 install
-m
0644 modulefunctions $
{D
}$
{sysconfdir
}/default
80 for s in $
{INITSCRIPTS
}
82 install
-m
0755 initscripts
/$s $
{D
}$
{sysconfdir
}/init.d
/
86 # Udev configuration files
87 install
-m
0644 links.conf $
{D
}$
{sysconfdir
}/udev
90 install
-m
0644 conffiles $
{D
}$
{sysconfdir
}/default
95 # NB
: do
not use '
08'
(etc
) for the
first argument
after start
/stop,
96 # the value is interpreted as an octal number
if there is a leading
98 pkg_postinst_foonas
-init
() {
100 test
-n
"$D" && opt
="-r $D"
101 update
-rc.d $opt hwclock.sh start
8 S . start
45 0 6 .
102 update
-rc.d $opt umountinitrd.sh start
9 S .
103 update
-rc.d $opt fixfstab start
10 S .
104 update
-rc.d $opt syslog.buffer start
11 S . start
49 0 6 .
105 update
-rc.d $opt sysconfsetup start
12 S .
106 update
-rc.d $opt loadmodules.sh start
21 S .
107 update
-rc.d $opt syslog.file start
39 S . start
47 0 6 .
108 update
-rc.d $opt syslog.network start
44 S . start
39 0 6 .
109 update
-rc.d $opt rmrecovery start
99 1 2 3 4 5 .
112 pkg_postrm_foonas
-init
() {
114 test
-n
"$D" && opt
="-r $D"
115 for s in $
{INITSCRIPTS
}
117 update
-rc.d $opt
"$s" remove