Debian Codegraph @

init/openrc/binfmt-support.in

raw
1 #! /sbin/runscript
2
3 # Copyright (C) 2014 Colin Watson.
4 #
5 # This file is part of binfmt-support.
6 #
7 # binfmt-support is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by the
9 # Free Software Foundation; either version 3 of the License, or (at your
10 # option) any later version.
11 #
12 # binfmt-support is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 # Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License along
18 # with binfmt-support; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
21 depend()
22 {
23 need localmount
24 after bootmisc
25 }
26
27 start()
28 {
29 [ "$(uname)" = Linux ] || return 0
30 ebegin "Enabling additional executable binary formats"
31 @sbindir@/update-binfmts --enable
32 eend $?
33 }
34
35 stop()
36 {
37 [ "$(uname)" = Linux ] || return 0
38 ebegin "Disabling additional executable binary formats"
39 @sbindir@/update-binfmts --disable
40 eend $@
41 }