mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
7f0a7b947e
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
47 lines
887 B
Bash
47 lines
887 B
Bash
#!/bin/sh
|
|
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# Adapted by Marcel Saegebarth for slackbuilds.org for
|
|
# http://slackbuilds.org/result/?search=profile-sync-daemon.
|
|
|
|
description="Webbrowser profile syncing"
|
|
extra_commands="resync"
|
|
description_resync="Manually sync the disk profile with running tmpfs image"
|
|
|
|
start() {
|
|
echo "Starting Profile-Sync-Daemon"
|
|
/usr/bin/profile-sync-daemon sync
|
|
}
|
|
|
|
stop() {
|
|
echo "Stopping Profile-Sync-Daemon"
|
|
/usr/bin/profile-sync-daemon unsync
|
|
}
|
|
|
|
status() {
|
|
/usr/bin/profile-sync-daemon debug
|
|
}
|
|
|
|
resync() {
|
|
echo "Syncing browser profiles in tmpfs to physical disc"
|
|
/usr/bin/profile-sync-daemon resync
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
resync)
|
|
resync
|
|
;;
|
|
|
|
status)
|
|
status
|
|
;;
|
|
*)
|
|
echo $"Usage: $0 {start|stop|resync|status}"
|
|
exit 1
|
|
esac
|