|
@@ -99,7 +99,20 @@ function backup_remote_dlna {
|
99
|
99
|
}
|
100
|
100
|
|
101
|
101
|
function restore_remote_dlna {
|
102
|
|
- echo -n ''
|
|
102
|
+ if [ -d /var/cache/minidlna ]; then
|
|
103
|
+ if [ -d $SERVER_DIRECTORY/backup/dlna ]; then
|
|
104
|
+ echo $"Restoring DLNA cache"
|
|
105
|
+ temp_restore_dir=/root/tempdlna
|
|
106
|
+ function_check restore_directory_from_friend
|
|
107
|
+ restore_directory_from_friend $temp_restore_dir dlna
|
|
108
|
+ cp -r $temp_restore_dir/var/cache/minidlna/* /var/cache/minidlna/
|
|
109
|
+ if [ ! "$?" = "0" ]; then
|
|
110
|
+ exit 982
|
|
111
|
+ fi
|
|
112
|
+ rm -rf $temp_restore_dir
|
|
113
|
+ echo $"Restore of DLNA complete"
|
|
114
|
+ fi
|
|
115
|
+ fi
|
103
|
116
|
}
|
104
|
117
|
|
105
|
118
|
function remove_dlna {
|