File: wm-menu-config

package info (click to toggle)
menu 2.1.5-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,476 kB
  • ctags: 1,251
  • sloc: cpp: 6,222; ansic: 2,306; sh: 453; makefile: 296; sed: 93
file content (15 lines) | stat: -rwxr-xr-x 348 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh 

inst=/etc/menu-methods/$1

case "$2" in 
"on")  if [ -x /usr/bin/update-menus -a -f $inst -a -x /usr/sbin/install-menu ] ; then
          chmod a+x $inst
          update-menus
       fi 
       ;;
"off") 
       if [ -f "$inst" ]; then chmod a-x $inst ; fi
       if [ -x /usr/bin/update-menus ] ; then update-menus; fi
       ;;
esac