On Mon, Jul 04, 2011 at 11:50:58AM +0200, Harald Dunkel wrote:
> I would like to install a private package diverting
> /etc/profile (to support /etc/profile.d). Problem:
> There is no owner for this file.

Stock Debian already supports /etc/profile.d.

    if [ -d /etc/profile.d ]; then
      for i in /etc/profile.d/*.sh; do
        if [ -r $i ]; then
          . $i
        fi
      done
      unset i
    fi

-- 
Freedom-based blog/wiki/web hosting: http://www.branchable.com/


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110704103348.ga20...@havelock.liw.fi

Reply via email to