install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 460b6e552b409ac6a6e9483ffbc2e338c63d7c84
parent a3d390f85f8ec1de48e86d10a2483b80af9ab6c5
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 12 Dec 2016 20:01:38 +0100

Add(Logins links)

Diffstat:
Mscreens/install/install.py | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/screens/install/install.py b/screens/install/install.py @@ -695,3 +695,9 @@ class Install: self.exec(["sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la"], shell=True) self.exec(["ln", "-sv", "bash", "/bin/sh"]) self.exec(["ln", "-sv", "/proc/self/mounts", "/etc/mtab"]) + + def login_links(self, path = "/"): + self.exec(["touch", path + "var/log/{btmp,lastlog,faillog,wtmp}"], shell=True) + self.exec(["chgrp", "-v", "utmp", path + "var/log/lastlog"]) + self.exec(["chmod", "-v", "664", path + "var/log/lastlog"]) + self.exec(["chmod", "-v", "600", path + "var/log/btmp"])