Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / installer / linux / common / symlinks.include
blob700215c4c9d1b2141a3487783dffa44dc9a19002
1 NSS_FILES="libnspr4.so.0d libplds4.so.0d libplc4.so.0d libssl3.so.1d \
2     libnss3.so.1d libsmime3.so.1d libnssutil3.so.1d"
4 add_nss_symlinks() {
5   get_lib_dir
6   for f in $NSS_FILES
7   do
8     target=$(echo $f | sed 's/\.[01]d$//')
9     if [ -f "/$LIBDIR/$target" ]; then
10       ln -snf "/$LIBDIR/$target" "@@INSTALLDIR@@/$f"
11     elif [ -f "/usr/$LIBDIR/$target" ]; then
12       ln -snf "/usr/$LIBDIR/$target" "@@INSTALLDIR@@/$f"
13     else
14       echo $f not found in "/$LIBDIR/$target" or "/usr/$LIBDIR/$target".
15       exit 1
16     fi
17   done
20 remove_nss_symlinks() {
21   for f in $NSS_FILES
22   do
23     rm -rf "@@INSTALLDIR@@/$f"
24   done
27 remove_udev_symlinks() {
28   rm -rf "@@INSTALLDIR@@/libudev.so.0"