Changeset 2371


Ignore:
Timestamp:
May 5, 2014, 10:25:58 AM (4 years ago)
Author:
matthijs
Message:

base-files: Source /etc/profile.local on (SSH) login

This allows adding things to the profile, without having to modify an
existing file. This additionally allows including these changes in the
backup and preserve them through upgrades.

Thanks to Thomas Horner for the base for this patch.

Closes: #1256

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/modules/admin-fon/root/sbin/save-config.sh

    r2329 r2371  
    146146# Create the tarball, containing a bunch of complete config files and
    147147# the above generated uci commands.
    148 tar cvzf /tmp/sysupgrade.tgz /etc/uci-defaults /etc/passwd /etc/group /etc/dropbear /etc/samba/smbpasswd /etc/samba/secrets.tdb /etc/firewall.user /etc/config/upnpd /etc/config/registered /etc/config/gdata /etc/config/facebook /etc/config/flickr /etc/config/mountd /etc/config/fon /etc/config/ddns /etc/config/wizard /etc/pureftpd.passwd /etc/pureftpd.pdb /etc/config/pureftpd /etc/config/samba /etc/config/twitter /etc/config/luci_ethers /etc/openvpn/keys /etc/config/uploadd /etc/nixio /etc/config/luci_wol
     148tar cvzf /tmp/sysupgrade.tgz /etc/uci-defaults /etc/passwd /etc/group /etc/dropbear /etc/samba/smbpasswd /etc/samba/secrets.tdb /etc/firewall.user /etc/config/upnpd /etc/config/registered /etc/config/gdata /etc/config/facebook /etc/config/flickr /etc/config/mountd /etc/config/fon /etc/config/ddns /etc/config/wizard /etc/pureftpd.passwd /etc/pureftpd.pdb /etc/config/pureftpd /etc/config/samba /etc/config/twitter /etc/config/luci_ethers /etc/openvpn/keys /etc/config/uploadd /etc/nixio /etc/config/luci_wol /etc/profile.local
    149149
    150150# Rememove the zzz-upgrade file again. It ended up in the tarball, no
  • trunk/openwrt/package/base-files/files/etc/profile

    r1856 r2371  
    1414[ -x /sbin/arp ] || arp() { cat /proc/net/arp; }
    1515[ -z /bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
     16
     17# Allow local modifications to the profile, without having to modify
     18# this file. profile.local is also backed up and preserved on upgrades.
     19[ -f /etc/profile.local ] && . /etc/profile.local
Note: See TracChangeset for help on using the changeset viewer.