path: usr/share/PiDesktop/python
- restart.py
shutdown shell
- rtc.py
1.Edit the file /boot/config.txt,changing 'dtoverlay=i2c-rtc,pcf8563'.
2.Edit the file /lib/udev/hwclock-set,commenting out some code.
3.Disable fake-hwclock.service
- pppBoot.py
Change boot parameters. Edit the file /boot/cmdline.txt,changing 'root=/dev/sda2'.
- diskClone.py
1.Check if there is a mSATA disk.
2.call piclone
3.call pppBoot.py
path: usr/share/PiDesktop/script
- ppp-hdclone
call diskClone.py
- sync-hwclock
synchronous time
path: lib/systemd/system Create the startup service.
- embest.service
call restart.py
- embest-shutdown.service
call sync-hwclock
####Deb control shell
- control
Deb file's infomation.
- postinst
Run after install deb file completion.
- Add +x to shell files.
- Generate link script(/usr/bin) to pppBoot.py and ppp-hdclone.
- Enable services(embest-shutdown.service and embest.service).
- postrm
run before remove deb file completion.
####Make pidesktop-base.deb file,command line run:
dpkg -b pidesktop-base/ pidesktop-base.deb