Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 294749 | Differences between
and this patch

Collapse All | Expand All

(-)pe-format.init-1 (-5 / +5 lines)
Lines 10-25 Link Here
10
start() {
10
start() {
11
   ebegin "Registering PE binaries with ${CLR}"
11
   ebegin "Registering PE binaries with ${CLR}"
12
12
13
   if [[ ! -d /proc/sys/fs/binfmt_misc ]] ; then
13
   if [ ! -d /proc/sys/fs/binfmt_misc ] ; then
14
      eerror "You need support for \"misc binaries\" in your kernel!"
14
      eerror "You need support for \"misc binaries\" in your kernel!"
15
      eend 1
15
      eend 1
16
   fi
16
   fi
17
17
18
   if [[ $(mount | grep -c binfmt_misc) -eq 0 ]] ; then
18
   if [ $(mount | grep -c binfmt_misc) -eq 0 ] ; then
19
      mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc &> /dev/null
19
      mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc > /dev/null 2>&1
20
      local result=$?
20
      local result=$?
21
21
22
      if [[ $result -ne 0 ]] ; then
22
      if [ $result -ne 0 ] ; then
23
         eend $result
23
         eend $result
24
      fi
24
      fi
25
   fi
25
   fi
Lines 43-49 Link Here
43
stop() {
43
stop() {
44
   ebegin "Unregistering PE binaries"
44
   ebegin "Unregistering PE binaries"
45
45
46
   if [[ -f /proc/sys/fs/binfmt_misc/PE ]] ; then
46
   if [ -f /proc/sys/fs/binfmt_misc/PE ] ; then
47
      echo '-1' > /proc/sys/fs/binfmt_misc/PE
47
      echo '-1' > /proc/sys/fs/binfmt_misc/PE
48
   fi
48
   fi
49
49

Return to bug 294749