1
0
forked from ports/opt

cifs-utils: add rc script

This commit is contained in:
Juergen Daubert 2013-01-21 16:37:31 +01:00
parent 971004751b
commit 96f0425c1a
4 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,6 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/cifs
drwxr-xr-x root/root sbin/
-rwxr-xr-x root/root sbin/mount.cifs
drwxr-xr-x root/root usr/

View File

@ -1,2 +1,3 @@
24c6eded8b4023e946223862709baf6c cifs
53d12c13345008e6252017c2735b18e5 cifs-utils-5.9-got_user.patch
7164ad6f7963a31fcbffbe4f14a7cfc6 cifs-utils-5.9.tar.bz2

View File

@ -5,9 +5,9 @@
name=cifs-utils
version=5.9
release=2
release=3
source=(ftp://ftp.samba.org/pub/linux-cifs/$name/$name-$version.tar.bz2
$name-$version-got_user.patch)
cifs $name-$version-got_user.patch)
build () {
cd $name-$version
@ -15,4 +15,5 @@ build () {
./configure --prefix=/usr --mandir=/usr/man
make
make DESTDIR=$PKG install
install -D -m 0755 $SRC/cifs $PKG/etc/rc.d/cifs
}

23
cifs-utils/cifs Normal file
View File

@ -0,0 +1,23 @@
#!/bin/sh
#
# /etc/rc.d/cifs: mount/umount cifs filesystems
#
case $1 in
start)
/bin/mount -a -t cifs
;;
stop)
/bin/umount -a -t cifs
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file