View Single Post
  #1609 (permalink)  
Old 03-10-2011, 02:23 PM
natemcnutty's Avatar
natemcnutty
VIP Member
Offline
Threadstarter
 
Join Date: Nov 2009
Posts: 845
Reputation: 3070
natemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 03-08: Full NAND FRX05 Testing (Data not working for some)

Quote:
Originally Posted by Lmiller1708 View Post
Looks great!

Nate did you get a chance to test my MTDparts last night?

Also I can try to add a patch to for the replimenu.

Questions:
1. How are we going to add the ln -s data/ppp etc/ppp?

2. Permissions? We can just use the script the Vogue team has used, but we will need to change a couple of things around to fit our needs. I'm going to work more on this today.

EDIT: Permissions File so far...
Code:
#Data
set_perm 1000 1000 0771 /data/app
set_perm_recursive 1000 1000 0644 0644 /data/app
set_perm_recursive 0 0 0777 0777 /data/modules
set_perm_recursive 0 2000 0755 0755 /data/ppp

#System
set_perm_recursive 0 0 0755 0644 /system
set_perm 1002 1002 0444 /system/etc/dbus.conf
set_perm 0 0 0700 /system/init
set_perm_recursive 0 2000 0755 0755 /system/bin
set_perm_recursive 0 2000 0755 0755 /system/xbin
set_perm 0 0 04755 /system/bin/pppd
set_perm 0 0 04755 /system/bin/su
set_perm 0 3003 02755 /system/bin/netcfg
set_perm 0 3004 02755 /system/bin/ping
set_perm 1014 2000 0550 /system/etc/dhcpcd/dhcpcd-run-hooks
These Functions are being called:
Code:
set_perm() {
    chown $1:$2 $4
    chmod $3 $4
}

set_perm_recursive() {
    chown -R $1:$2 $5
    chmod -R $3:$4 $5
}
I haven't tried the mtdparts yet, but I did just push the change for the ppp. It's this: ln -s /data/ppp /system/etc
That will create a directory link that says any calls to /system/etc/ppp will go to /data/ppp. I believe this will work when /etc is mounted from /system/etc because it will still see the /etc/ppp directory as /data/ppp.

As for permissions, I really don't know much about them, and I feel that a lot of our issues may be stemming from them. Wish I knew more to help there, but I haven't gotten in to that yet.
Reply With Quote