mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-04-28 11:29:29 +00:00
15 lines
365 B
Bash
Executable file
15 lines
365 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# copy of debian/preinst
|
|
INSTALL_DIR=/OpenBTS
|
|
DATE=$(date --rfc-3339='date')
|
|
BACKUP_DIR=$INSTALL_DIR/backup_$DATE
|
|
|
|
if [ -f $INSTALL_DIR/OpenBTS -a -f $INSTALL_DIR/transceiver ]; then
|
|
if [ ! -e $BACKUP_DIR ]; then
|
|
mkdir -p $BACKUP_DIR/
|
|
|
|
mv $INSTALL_DIR/OpenBTS $BACKUP_DIR/
|
|
mv $INSTALL_DIR/transceiver $BACKUP_DIR/
|
|
fi
|
|
fi
|