/dev/null /var/Linux /

Index:

STEP 6: Adding the last lines: cleanup

So you have your install script, your control file, your postinst and your home directory ready. Now we want to se the right permissions and remove the old files. Remember the install script runs as root. You need to now add lines to your install scrip that sets the permissions correctly everywhere.

#Cleanup

chmod -R 777 /home/user
chown -R user:users /home/user
rm -fr /home/user/apps
rm -f /etc/init.d/install.sh
rm -f /etc/rc2.d/S33install.sh
#REBOOT THE DEVICE
reboot

The reboot in the end is needed so that your device will then boot fully with all the settings in place. Congratulations you are pretty much done. In the Appendix you can check for the locations of other files that might be useful and some hints about the contents of some config files.

All you need to do now is BUILD the package. for that save all the files and double check that everything is in place. and no unnecessary files are anywhere. In my first go I forgot the source unserenvironment in the package directory and was wondering why my package size ended up quite large.
So exit the MyPackage directory and then type this command:

dpkg -b MyPackage MyPackage.deb

and you should get 1 warning about the custom icon in the control file but thats it. You should then have in your present directory a MyPackage.deb file.
This file is all you need on a freshly flashed device. copy it to the MMC or SD card and in the file-manager double-click it. It will ask you to install it which you will give it an OK. When it says INSTALLED SUCCESSFULLY, click ok and turn your device off. When you turn it on, the boot status loader will go to the end and then stop, after a few seconds the device will reboot and your custom settings are installed. The device is now usable with your custom branding.

No Tags

Popularity: 100% [?]

Pages: 1 2 3 4 5 6 7 8