mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Korrekturen damit der Build wieder laeuft
MPFire fix damit der shuffle funktioniert Backup der Addons weiter gebaut git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@975 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -36,6 +36,20 @@ remove_files() {
|
||||
echo "...Finished."
|
||||
}
|
||||
|
||||
make_backup(){
|
||||
[ -e "/var/ipfire/backup/addons/include/${1}" ] && \
|
||||
( echo "Creating Backup..."
|
||||
/usr/local/bin/backupctrl addonbackup ${1}
|
||||
echo "...Finished." )
|
||||
}
|
||||
|
||||
restore_backup(){
|
||||
[ -e "/var/ipfire/backup/addons/backup/${1}" ] && \
|
||||
( echo "Restoring Backup..." && \
|
||||
/usr/local/bin/backupctrl restoreaddon ${1} && \
|
||||
echo "...Finished." )
|
||||
}
|
||||
|
||||
restart_service() {
|
||||
|
||||
/etc/init.d/$1 restart
|
||||
|
||||
Reference in New Issue
Block a user