File: install.sh

package info (click to toggle)
cdcontrol 1.90-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 160 kB
  • ctags: 16
  • sloc: sh: 944; makefile: 26
file content (30 lines) | stat: -rwxr-xr-x 1,268 bytes parent folder | download | duplicates (2)
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
29
30
#!/bin/bash

BASEDIR="/"

clear
echo "Wait while the CDcontrol is being installed on your filesystem..."
install -m755 -o 0 -g 0 -d ${BASEDIR}/usr/lib/cdcontrol
install -m755 -o 0 -g 0 -d ${BASEDIR}/var/lib/cdcontrol
install -m755 -o 0 -g 0 -d ${BASEDIR}/pub/cdcontrol-images
install -m755 -o 0 -g 0 -d ${BASEDIR}/var/log/cdcontrol

# Instala os utilit�rios
install -m 755 -o 0 -g 0 cdcontrol-erase       ${BASEDIR}/usr/lib/cdcontrol
install -m 755 -o 0 -g 0 cd-memory             ${BASEDIR}/usr/lib/cdcontrol
install -m 755 -o 0 -g 0 check-cdcontrol-codes ${BASEDIR}/usr/lib/cdcontrol
install -m 755 -o 0 -g 0 config-cdcontrol      ${BASEDIR}/usr/lib/cdcontrol
install -m 755 -o 0 -g 0 memory-cd             ${BASEDIR}/usr/lib/cdcontrol
install -m 755 -o 0 -g 0 cdcontrol-rel         ${BASEDIR}/usr/lib/cdcontrol
install -m 755 -o 0 -g 0 writtercontrol        ${BASEDIR}/usr/lib/cdcontrol
install -m 755 -o 0 -g 0 cdcontrol	       ${BASEDIR}/usr/sbin


# Instala o arquivo de configura��o
install -m 644 -o 0 -g 0 cdcontrolrc ${BASEDIR}/etc

clear
echo "System installed, by default the CDcontrol CD images will be written to"
echo "/pub/cdcontrol-images, edit the /etc/cdcontrolrc configuration file to "
echo "adjust CDcontrol to your own hardware configuration."