File: mount.translucency

package info (click to toggle)
translucency 0.6.0-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 240 kB
  • ctags: 221
  • sloc: ansic: 2,133; makefile: 260; perl: 172; sh: 102
file content (16 lines) | stat: -rwxr-xr-x 369 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
/sbin/modprobe translucency
for entry in /proc/sys/translucency/[0-9]* ; 
  do if grep -vq . $entry ; then free=$entry; break ; fi
done ;
if test -z "$free" ; then
  echo "mount.translucency: no free redir left"
  exit 1
fi
echo "$1 -> $2" > $free
shift 2
if [ $1 = "-o" ] ; then
  shift
# TODO: parse options in $1 here
# e.g. $1 = "rw,flags=4,uid=65534"
fi