Commit a4b83261 authored by fuyanbin's avatar fuyanbin
Browse files

没有mac地址的设备支持持久化mac地址

parent 887aa97f
......@@ -11,7 +11,7 @@ smallprcfile="$(pwd)/services/smallp.rc"
starthugepfile="$(pwd)/services/starthugep.sh"
uninstallpkgrc="$(pwd)/services/uninstallpkg.rc"
uninstallpkgfile="$(pwd)/services/uninstallpkg.sh"
setmacrc="$(pwd)/services/set-mac.rc"
setmacrc="$(pwd)/services/setmac.rc"
setmacfile="$(pwd)/services/set-mac.sh"
aml_image_v2_packer -d "$img" "./$build_dir"
......@@ -38,6 +38,10 @@ sudo cp -f "$uninstallpkgrc" "$build_dir/system/etc/init"
sudo cp -f "$uninstallpkgfile" "$build_dir/system/bin"
sudo chcon u:object_r:drmserver_exec:s0 "$build_dir/system/bin/$(basename "$uninstallpkgfile")"
sudo cp -f "$setmacrc" "$build_dir/system/etc/init"
sudo cp -f "$setmacfile" "$build_dir/system/bin"
sudo chcon u:object_r:drmserver_exec:s0 "$build_dir/system/bin/$(basename "$setmacfile")"
sudo umount "$loopdev"
sudo losetup -d "$loopdev"
sync
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment