mirror of
https://github.com/troglobit/finit.git
synced 2026-11-22 20:01:46 +00:00
Drop system("rm -f") to clean /tmp, its a fresh mounted tmpfs
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
ef3071b957
commit
bbe281db55
5 files changed
+5
-2
No files matched your search
@@ -2,6 +2,7 @@
|
|||||||
0.2 ()
|
0.2 ()
|
||||||
- replace system("touch") with touch() in finit-mod (Metalshark)
|
- replace system("touch") with touch() in finit-mod (Metalshark)
|
||||||
- disable NO_HCTOSYS by default to match stock Eeepc kernel
|
- disable NO_HCTOSYS by default to match stock Eeepc kernel
|
||||||
|
- drop system("rm -f") to clean /tmp, its a fresh mounted tmpfs
|
||||||
|
|
||||||
0.1 (20081214)
|
0.1 (20081214)
|
||||||
- initial release
|
- initial release
|
||||||
@@ -69,3 +69,4 @@ problems related to udev and pam.
|
|||||||
/etc/init.d/portmap start
|
/etc/init.d/portmap start
|
||||||
/etc/init.d/nfs-common start
|
/etc/init.d/nfs-common start
|
||||||
|
|
||||||
|
3 - Create /etc/hostname if you don't have it already
|
||||||
@@ -274,7 +274,6 @@ int main()
|
|||||||
/*
|
/*
|
||||||
* Misc setup
|
* Misc setup
|
||||||
*/
|
*/
|
||||||
system("/bin/rm -rf /tmp/* /tmp/.* 2>/dev/null");
|
|
||||||
unlink("/var/run/.clean");
|
unlink("/var/run/.clean");
|
||||||
unlink("/var/lock/.clean");
|
unlink("/var/lock/.clean");
|
||||||
umask(0);
|
umask(0);
|
||||||
|
|||||||
+1
-1
@@ -33,6 +33,7 @@ Changelog from the original Eeepc fastinit:
|
|||||||
- Omit first hwclock if user has CONFIG_RTC_HCTOSYS in kernel (by Metalshark)
|
- Omit first hwclock if user has CONFIG_RTC_HCTOSYS in kernel (by Metalshark)
|
||||||
- Add –directisa to hwclock if user has disabled CONFIG_GENRTC and enabled
|
- Add –directisa to hwclock if user has disabled CONFIG_GENRTC and enabled
|
||||||
CONFIG_RTC but not CONFIG_HPET_TIMER and CONFIG_HPET_RTC_IRQ (by Metalshark)
|
CONFIG_RTC but not CONFIG_HPET_TIMER and CONFIG_HPET_RTC_IRQ (by Metalshark)
|
||||||
|
- Drop system() call to clean /tmp, it's a fresh mounted tmpfs
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -225,7 +226,6 @@ int main()
|
|||||||
/*
|
/*
|
||||||
* Misc setup
|
* Misc setup
|
||||||
*/
|
*/
|
||||||
system("/bin/rm -rf /tmp/* /tmp/.* 2>/dev/null");
|
|
||||||
unlink("/var/run/.clean");
|
unlink("/var/run/.clean");
|
||||||
unlink("/var/lock/.clean");
|
unlink("/var/lock/.clean");
|
||||||
umask(0);
|
umask(0);
|
||||||
|
|||||||
@@ -164,7 +164,9 @@ int main()
|
|||||||
/*
|
/*
|
||||||
* Misc setup
|
* Misc setup
|
||||||
*/
|
*/
|
||||||
|
/* not really needed, /tmp is a fresh mounted tmpfs */
|
||||||
system("/bin/rm -rf /tmp/* /tmp/.* 2>/dev/null");
|
system("/bin/rm -rf /tmp/* /tmp/.* 2>/dev/null");
|
||||||
|
|
||||||
unlink("/var/run/.clean");
|
unlink("/var/run/.clean");
|
||||||
unlink("/var/lock/.clean");
|
unlink("/var/lock/.clean");
|
||||||
umask(0);
|
umask(0);
|
||||||
|
|||||||
Reference in new issue
Block a user