source: live-build/trunk/fuentes/examples/hooks/symlinks.chroot @ 900

Last change on this file since 900 was 900, checked in by kbut, 4 years ago

add original source

  • Property svn:executable set to *
File size: 360 bytes
Line 
1#!/bin/sh
2
3# This is a hook for live-build(7) to install localepurge.
4# To enable it, copy or symlink this hook into your config/chroot_local-hooks
5# directory.
6#
7
8_PURGE=""
9
10if [ ! -x "$(which symlinks 2>/dev/null)" ]
11then
12        _PURGE="true"
13
14        apt-get install symlinks
15fi
16
17symlinks -c -r -s /
18
19if [ "${_PURGE}" = "true" ]
20then
21        apt-get remove --purge symlinks
22fi
Note: See TracBrowser for help on using the repository browser.