2013-03-28 15:28:27 +01:00
|
|
|
DEV_SRC='/dev/sda'
|
|
|
|
DEV_DST='/dev/sdb1'
|
2013-10-09 17:33:54 +02:00
|
|
|
|
2013-02-15 18:47:13 +01:00
|
|
|
# User allowed to do the following commands without password
|
|
|
|
USERNAME='kitten'
|
2013-02-17 02:16:55 +01:00
|
|
|
HOME="/home/${USERNAME}"
|
2013-10-09 17:33:54 +02:00
|
|
|
MUSIC="/opt/midi/"
|
2013-02-15 18:47:13 +01:00
|
|
|
|
2014-03-26 16:40:19 +01:00
|
|
|
TMP="/tmp"
|
2013-08-02 13:49:13 +02:00
|
|
|
|
2013-02-22 17:35:23 +01:00
|
|
|
# Paths used in multiple scripts
|
2013-08-02 13:49:13 +02:00
|
|
|
SRC="${TMP}/src"
|
|
|
|
DST="${TMP}/dst"
|
2013-02-22 17:35:23 +01:00
|
|
|
TEMP="${DST}/temp"
|
|
|
|
ZIPTEMP="${DST}/ziptemp"
|
|
|
|
LOGS="${DST}/logs"
|
|
|
|
|
|
|
|
|
2013-02-15 18:47:13 +01:00
|
|
|
# commands
|
|
|
|
SUDO='/usr/bin/sudo'
|
2013-12-03 16:27:09 +01:00
|
|
|
ID=`/usr/bin/id -u`
|
2013-02-15 18:47:13 +01:00
|
|
|
SYNC='/bin/sync'
|
2013-10-09 17:33:54 +02:00
|
|
|
TIMIDITY='/usr/bin/timidity'
|
2014-03-26 16:40:19 +01:00
|
|
|
MOUNT='/bin/mount'
|
2013-02-15 18:47:13 +01:00
|
|
|
|
2013-02-17 02:16:55 +01:00
|
|
|
# root commands.
|
|
|
|
# To avoid the risk that an attacker use -o remount on mount and other nasty
|
|
|
|
# commands, we use our own scripts to invoke mount and umount.
|
|
|
|
MOUNT_DST="${HOME}/kitten_mount_dst"
|
|
|
|
MOUNT_SRC="${HOME}/kitten_mount_src"
|
|
|
|
UMOUNT="${HOME}/kitten_umount"
|