Skip to content

Instantly share code, notes, and snippets.

@Palantir555
Created April 13, 2016 20:50
Show Gist options
  • Save Palantir555/5c109b8d4a685c36389fe5526679f036 to your computer and use it in GitHub Desktop.
Save Palantir555/5c109b8d4a685c36389fe5526679f036 to your computer and use it in GitHub Desktop.
# cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shells
PATH=/bin:/sbin:/usr/bin
export PATH
swapdev
startbsp
echo 32 > /proc/sys/kernel/msgmni
test -e /bin/atserver && atserver &
test -e /bin/usbdiagd && usbdiagd &
echo "Loading drivers and kernel modules... "
echo > /var/dhcp/dhcps/leases
echo > /var/dhcp/dhcps/leasesF
ifconfig lo 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255 up
mknod /var/fuse c 10 229
chmod a+rw /var/fuse
#add for support chinese charset and ntfs fat ntfs filesystem
test -e /lib/kernel/fs/fat/fat.ko && insmod /lib/kernel/fs/fat/fat.ko
test -e /lib/kernel/fs/vfat/vfat.ko && insmod /lib/kernel/fs/vfat/vfat.ko
test -e /lib/kernel/fs/ntfs/ntfs.ko && insmod /lib/kernel/fs/ntfs/ntfs.ko
test -e /lib/kernel/fs/nls/nls_cp936.ko && insmod /lib/kernel/fs/nls/nls_cp936.ko
test -e /lib/kernel/arch/mips/rt2880/lm.ko && insmod /lib/kernel/arch/mips/rt2880/lm.ko
test -e /lib/kernel/arch/mips/rt2880/rt_timer.ko && insmod /lib/kernel/arch/mips/rt2880/rt_timer.ko
test -e /lib/kernel/drivers/usb/serial/option.ko && insmod /lib/kernel/drivers/usb/serial/option.ko
test -e /lib/kernel/fs/fuse/fuse.ko && insmod /lib/kernel/fs/fuse/fuse.ko
test -e /lib/extra/dwc_otg.ko && insmod /lib/extra/dwc_otg.ko
test -e /lib/kernel/drivers/usb/host/ehci-hcd.ko && insmod /lib/kernel/drivers/usb/host/ehci-hcd.ko
test -e /lib/kernel/drivers/usb/host/ohci-hcd.ko && insmod /lib/kernel/drivers/usb/host/ohci-hcd.ko
test -e /lib/extra/ralink_gdma.ko && insmod /lib/extra/ralink_gdma.ko
test -e /lib/extra/rt2860v2_ap.ko && insmod /lib/extra/rt2860v2_ap.ko
mic
echo "Done"
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment