diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-02-17 21:17:09 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-02-17 21:17:09 -0200 |
commit | d273d650f54b440c123e029370885bd2ac8fb553 (patch) | |
tree | 95a61131b190b5fda381019d11b22e8a3b561fe2 /pcr/netatalk/netatalk.install | |
parent | c33469d8922906a81f87786084bf024b849ff877 (diff) | |
parent | 98a7e894d8347b242611c2cfd44bdb0f81576080 (diff) | |
download | abslibre-d273d650f54b440c123e029370885bd2ac8fb553.tar.gz abslibre-d273d650f54b440c123e029370885bd2ac8fb553.tar.bz2 abslibre-d273d650f54b440c123e029370885bd2ac8fb553.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/netatalk/netatalk.install')
-rw-r--r-- | pcr/netatalk/netatalk.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/netatalk/netatalk.install b/pcr/netatalk/netatalk.install new file mode 100644 index 000000000..629586531 --- /dev/null +++ b/pcr/netatalk/netatalk.install @@ -0,0 +1,20 @@ +post_install() { + post_upgrade +} +post_upgrade() { + if [ -f /etc/rc.conf ] && [ "`grep -E '(cnid|atalkd|afpd)' /etc/rc.conf`" ];then + echo '>>> Detected old netatalk daemon entries in'; + echo '>>> /etc/rc.conf, please replace these with'; + echo '>>> "netatalk" before restarting!'; + else echo '>>> Add "netatalk" to your DAEMONS list';fi + echo '>>>'; + if [ -f /etc/avahi/services/adisk.service ] || + [ -f /etc/avahi/services/afpd.service ];then + echo '>>> Detected old netatalk service files in'; + echo '>>> /etc/avahi/services, please delete these'; + echo '>>> before restarting!';fi + if [ -f /opt/netatalk/afp_signature.conf ] || + [ -f /opt/netatalk/afp_voluuid.conf ]; then + echo '>>> Found *.conf in /opt/netatalk, please'; + echo '>>> migrate these to /etc/netatalk before restarting';fi +} |