File: webcamd-setup

package info (click to toggle)
webcamd 0.7.6-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 96 kB
  • ctags: 12
  • sloc: perl: 357; makefile: 59; sh: 21
file content (28 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

INSTALL=install
ANS=z

echo "Installing webcamd configuration files in your ~/.webcamd directory"
echo
echo "THIS WILL ERASE YOUR EXISTING CONFIGURATIONS FILES"

while [ $ANS != "y" -a $ANS != "n" ]
do
echo -n "Are you sure you want to do this ? [y/n] "
read ANS;
done

if [ $ANS == "y" ] 
then
	$INSTALL -m 700 -d $HOME/.webcamd/
	$INSTALL -m 600 /usr/share/doc/webcamd/examples/index_up.html $HOME/.webcamd/
	$INSTALL -m 600 /usr/share/doc/webcamd/examples/index_down.html $HOME/.webcamd/
	$INSTALL -m 600 /usr/share/doc/webcamd/examples/webcamd.conf $HOME/.webcamd/
echo
echo "Installation done."

else 
echo "Ok, nothing was done"

fi