]> git.pld-linux.org Git - packages/binfmt-detector.git/commitdiff
- implement status
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 22 Nov 2009 09:47:42 +0000 (09:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    binfmt-detector.init -> 1.9

binfmt-detector.init

index a8a3a9a84d77e7a8218cf71ce46fb73ff87a29c3..9eaffea284841b6cc3b2122d9d5848cb18b36008 100644 (file)
@@ -81,6 +81,15 @@ case "$1" in
        condrestart 7
        ;;
   status)
+       if [ ! -f /var/lock/subsys/binfmt-detector ]; then
+               msg_not_running "binfmt detector"
+               exit 1
+       fi
+       for fmt in windows windowsPE; do
+               printf "%s: %s; %s: %s\n" $fmt \
+                       $(grep -E '(disabled|enabled)' $BINFMT_DIR/$fmt) \
+                       $(grep -E 'interpreter' $BINFMT_DIR/$fmt)
+       done
        ;;
   *)
        msg_usage "$0 {start|stop|restart|reload|try-restart|force-reload|status}"
This page took 0.079213 seconds and 4 git commands to generate.